---
id: change/bcapps/10519
type: change
title: "#10519 SOA - Try it out : agent activation after closing the page"
summary: The Sales Order Agent now activates only after a task is submitted rather than when the Create Task page closes, preventing unintended activation when the form is cancelled.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - page soa create task
  - codeunit soa create task impl
  - page soa setup
system: development
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:07:51.429Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: c3414ede3ec7bab5a928f312c1208dbd0f8e39a7
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/10519
    title: "microsoft/BCApps#10519: SOA - Try it out : agent activation after closing the page"
    date: "2026-08-22"
    commit: c3414ede3ec7bab5a928f312c1208dbd0f8e39a7
    t: null
    quote: Defer SOA agent activation in "Try it out" until the task is submitted
links:
  learn: []
  objects:
    - object/page/4409
    - object/codeunit/4415
    - object/page/4400
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 10519
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/10519
kind: pr
base_branch: main
major: "30"
merged_at: "2026-08-22T08:05:54Z"
author: VolodySyn
author_type: User
community_contribution: false
labels:
  - "AL: Apps (W1)"
  - "Team: SCM"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 3
  additions: 60
  deletions: 15
  al: 3
apps:
  - SalesOrderAgent
objects_touched:
  - key: page/4409
    page: page/4409
    type: page
    id: 4409
    name: SOA Create Task
    app: SalesOrderAgent
    status: modified
  - key: codeunit/4415
    page: codeunit/4415
    type: codeunit
    id: 4415
    name: SOA Create Task Impl
    app: SalesOrderAgent
    status: modified
  - key: page/4400
    page: page/4400
    type: page
    id: 4400
    name: SOA Setup
    app: SalesOrderAgent
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 640603
systems:
  - development
quote: Defer SOA agent activation in "Try it out" until the task is submitted
joined_against:
  major: "30"
  commit: ecbc028c25dbe83b61313bc566e6c1d41184bb1c
---

# #10519 SOA - Try it out : agent activation after closing the page

> The Sales Order Agent now activates only after a task is submitted rather than when the Create Task page closes, preventing unintended activation when the form is cancelled.

[Pull request](https://github.com/microsoft/BCApps/pull/10519) · merged into `main` (BC30) on 2026-08-22 by VolodySyn · 3 files (+60 -15), 3 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Agent activation deferred to task submission
- Cancelling the Create Task form no longer triggers agent activation
- Changes affect the task creation workflow in the SOA setup and implementation
- Improves user control over agent behavior during task creation
- Addresses issue AB#640603
- Behaviour changes for users or extensions.

## AL objects touched

- [Page 4409 "SOA Create Task"](../../objects/page/4409.md), SalesOrderAgent: modified
- [Codeunit 4415 "SOA Create Task Impl"](../../objects/codeunit/4415.md), SalesOrderAgent: modified
- [Page 4400 "SOA Setup"](../../objects/page/4400.md), SalesOrderAgent: modified

## Context

- Work items: AB#640603
- Labels: AL: Apps (W1), Team: SCM
- Systems: development
- From the description: "Defer SOA agent activation in "Try it out" until the task is submitted"

Source: metadata of a merged pull request in microsoft/BCApps (bcapps): title, labels, changed paths and counts, with a summary in our words. No source text and no description beyond one short quote (D10, D61).
