Codeunit 3332 "PA Draft Based Work Item"
PayablesAgent · Microsoft.Agent.PayablesAgent
Across versions
- BC23-29not present
- BC30present
Neighbourhood 9 connected objects and pages
PayablesAgent · Microsoft.Agent.PayablesAgent · BC30 · source at f53bb0f1 · facts from BC30
Properties
| Property | Value |
|---|---|
| Access | Internal |
| Permissions | tabledata Agent = R, tabledata “Agent Task” = R, tabledata “Agent Task Message” = R, tabledata “E-Document” = RM, tabledata “E-Doc. Data Storage” = R |
Procedures
CreateFromPdf(FileName: Text; PdfInStream: InStream): Boolean(internal)Load(WorkItemId: Guid): Boolean(internal)LoadForAgentTask(AgentTaskId: BigInteger): Boolean(internal)GetId(): Guid(internal)FindAgentTaskId(): BigInteger(internal)GetEntryNo(): Integer(internal)GetAgentTaskExternalId(): Text[2048](internal)GetSourceType(): Enum "PA Source Type"(internal)GetFileName(): Text(internal)HasPdf(): Boolean(internal)GetEmailFrom(): Text(internal)GetEmailSubject(): Text(internal)GetEmailExternalId(): Text(internal)GetEmailReceivedAt(): DateTime(internal)GetCreatedAt(): DateTime(internal)GetUpdatedAt(): DateTime(internal)TryGetEmailMessageId(var MessageId: Guid): Boolean(internal)GetSourcePdf(var TempBlob: Codeunit "Temp Blob"; var FileName: Text): Boolean(internal)GetOutcome(): RecordId(internal)IsStoredRecord(Candidate: RecordId): Boolean(internal)GetState(): Enum "PA Work Item State"(internal)HasOutcomeReferences(Outcome: RecordId): Boolean(internal)ReplaceOutcomeReferences(PreviousOutcome: RecordId; PostedOutcome: RecordId)(internal)
Plus 2 local procedures.
Calls
From the extracted call graph of BC30 (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 3338 “PA Draft Based Setup Store” (1 call:
CreateFromPdf → GetOrCreateService) - Codeunit 3350 “PA Agent Access” (1 call:
LoadForAgentTask → TryGetRuntimeTaskOwnership)
Called by
- Codeunit 3341 “PA Work Item” (24 calls:
AssociateAgentTask → GetId,AssociateAgentTask → LoadForAgentTask,CreateFromPdf → CreateFromPdf, …) - Codeunit 3333 “PA Draft Work Item Intake” (3 calls:
TryGetAgentTaskMessage → GetAgentTaskExternalId,TryGetAgentTaskMessage → Load,TryProcessIncomingWorkItem → Load) - Codeunit 3308 “PA Open Current E-Document” (2 calls:
CurrentDocumentNo → GetEntryNo,CurrentDocumentNo → Load) - Codeunit 3311 “PA Billing” (2 calls:
GetCurrentSessionEDocumentEntryNo → GetEntryNo,GetCurrentSessionEDocumentEntryNo → Load) - Codeunit 3312 “PA Draft Based Subscribers” (2 calls:
TryFindAgentTaskID → FindAgentTaskId,TryFindAgentTaskID → Load) - Codeunit 3347 “PA Draft Based Test Fixtures” (2 calls:
GetEDocument → GetId,GetEDocument → LoadForAgentTask) - Codeunit 3339 “PA V1V2 Flag” (1 call:
GetVersion → Load)
Recent changes
- 2026-11-14 #13361 Foundation for Payables Agent V2.0 (main, BC30, refactor, added)
Possibly related
No source states these links: they share an object, a model read them, or a person found the same subject.
- Match Purchase Invoice Drafts to Purchase Orders — possibly related: Draft-based work item manages purchase invoice draft matching to purchase orders during agent processing. (model-linked)
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 BC30 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: "PA Draft Based Work Item"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.