---
id: object/codeunit/4415
type: object
title: Codeunit 4415 "SOA Create Task Impl"
summary: Codeunit 4415 "SOA Create Task Impl" in SalesOrderAgent (Microsoft.Agent.SalesOrderAgent). 14 public procedures. Introduced in BC29, still in BC30.
tier: official
language: en
tags:
  - codeunit
  - salesorderagent
versions:
  introduced: "29"
  last_changed: null
  deprecated: null
review:
  state: derived
  by: null
  at: null
  flags: []
generated:
  at: "2026-10-11T00:31:51.816Z"
  pipeline: 0.2.0
  prompts: {}
  input_hash: 330317ec54d7a6f1702af00ee96eb80b9fb7d41a8a96e23f90f2088b99863bd6
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/SalesOrderAgent/app/src/Integration/SOACreateTaskImpl.Codeunit.al
    title: src/Apps/W1/SalesOrderAgent/app/src/Integration/SOACreateTaskImpl.Codeunit.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes:
    - change/bcapps/10567
    - change/bcapps/10631
    - change/bcapps/10519
    - change/bcapps/9364
    - change/bcapps/9708
object_type: codeunit
object_id: 4415
name: SOA Create Task Impl
namespace: Microsoft.Agent.SalesOrderAgent
app: SalesOrderAgent
extends: null
first_version: "29"
last_version: "30"
present_in:
  - "29"
  - "30"
changed_in: []
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 33
  events: 0
  subscribers: 0
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 6
  called_by: 3
  implements: 0
---

# Codeunit 4415 "SOA Create Task Impl"

> Codeunit 4415 "SOA Create Task Impl" in SalesOrderAgent (Microsoft.Agent.SalesOrderAgent). 14 public procedures. Introduced in BC29, still in BC30.

SalesOrderAgent · Microsoft.Agent.SalesOrderAgent · BC29-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/SalesOrderAgent/app/src/Integration/SOACreateTaskImpl.Codeunit.al) · facts from BC29

## Properties

| Property | Value |
|---|---|
| Access | Internal |

## Procedures

- `SetAgentUserSecurityID(NewAgentUserSecurityID: Guid)` (internal)
- `OpenCreateTaskPage(AgentUserSecurityID: Guid)` (internal)
- `OpenCreateTaskPageForData(AgentUserSecurityID: Guid; var SenderEmail: Text[250]; var MessageText: Text; var TempAgentTaskFile: Record "Agent Task File" temporary): Boolean` (internal)
- `GetCurrentUserSalespersonCode(): Code[20]` (internal)
- `SetSelectedContact(Contact: Record Contact)` (internal)
- `SetSelectedCustomer(Customer: Record Customer)` (internal)
- `ClearSelectedSender()` (internal)
- `ValidateTaskData(SenderEmail: Text[250]; MessageText: Text)` (internal)
- `CreateTask(SenderEmail: Text[250]; MessageText: Text; var TempAgentTaskFile: Record "Agent Task File" temporary)` (internal)
- `LoadSampleMessage(SenderEmail: Text[250]; var MessageText: Text)` (internal)
- `LoadSampleMessageWithAttachment(SenderEmail: Text[250]; var MessageText: Text; var TempBlob: Codeunit "Temp Blob")` (internal)
- `GetSampleAttachmentName(): Text` (internal)
- `GetSampleAttachmentMimeType(): Text` (internal)
- `GetSampleLineQuantity(SourceItem: Record Item; LocationCode: Code[10]): Integer` (internal)

Plus 19 local procedures.

## Calls

From the extracted call graph of BC29 (graphify-al on the snapshot checkout): calls whose target is known from a declared type or an `Object::"Name"` argument. Interface dispatch and calls through events are not counted, so the list is not complete.

- [Codeunit 4315 "Agent Task Builder"](../codeunit/4315.md) (2 calls: `CreateTask → Create`, `CreateTask → Initialize`)
- [Codeunit 4316 "Agent Task Message Builder"](../codeunit/4316.md) (2 calls: `AddAttachmentsToTaskMessage → AddAttachment`, `CreateTask → Initialize`)
- [Codeunit 353 "Item Availability Forms Mgt"](../codeunit/353.md) (1 call: `CalcItemProjAvailableBalance → CalcAvailQuantities`)
- [Codeunit 4100 "Temp Blob"](../codeunit/4100.md) (1 call: `GenerateSampleOrderPdf → CreateOutStream`)
- [Codeunit 4398 "SOA Task Message"](../codeunit/4398.md) (1 call: `CreateTask → MessageRequiresReview`)
- [Codeunit 4582 "SOA Retrieve Emails"](../codeunit/4582.md) (1 call: `CreateTask → GetAgentTaskTitle`)

## Called by

- [Page 4409 "SOA Create Task"](../page/4409.md) (6 calls: `LoadSampleMessage → LoadSampleMessage`, `LoadSampleMessageWithAttachment → GetSampleAttachmentMimeType`, `LoadSampleMessageWithAttachment → GetSampleAttachmentName`, …)
- [Codeunit 4401 "SOA Metadata Provider"](../codeunit/4401.md) (1 call: `CreateManualAgentTask → OpenCreateTaskPage`)
- [Report 4414 "SOA Sample Order"](../report/4414.md) (1 call: `SampleLineQuantity → GetSampleLineQuantity`)

## Recent changes

- 2026-08-30 [#10567 SOA : Create Task from TaskPane respects review configuration for known senders](../../changes/bcapps/10567.md) (main, BC30, fix)
- 2026-08-26 [#10631 Integration/main to releases 29.x 31a860b5](../../changes/bcapps/10631.md) (releases/29.x, BC29, feature)
- 2026-08-22 [#10519 SOA - Try it out : agent activation after closing the page](../../changes/bcapps/10519.md) (main, BC30, fix)
- 2026-08-05 [#9364 Slice 622414: [SOA] [Pioneer] Enhancing Sales Order Agent with Item Variant : availability and prices](../../changes/bcapps/9364.md) (main, BC30, feature)
- 2026-07-27 [#9708 Enable manual task creation for Sales Order Agent](../../changes/bcapps/9708.md) (main, BC30, feature)

## Across versions

- Present in: BC29-30
- Changed (declaration) in: none

Source: AL metadata extracted from the code (names, ids, signatures, properties); no code bodies (D10).

## Ask your agent

Procedure bodies are not stored here (D10). The call sections above are our own, per object, from the BC29 call graph. For a procedure body or the calls of one procedure, ask bc-code-atlas (external, by Stefan Maron, MIT; default corpus w1-28), which the bc-observatory plugin connects: `bcatlas_resolve_node(object_type: "codeunit", object_name: "SOA Create Task Impl")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
