Codeunit 3342 "PA Work Item Collection"
PayablesAgent · Microsoft.Agent.PayablesAgent
Across versions
- BC23-29not present
- BC30present
Neighbourhood 4 connected objects and pages
PayablesAgent · Microsoft.Agent.PayablesAgent · BC30 · source at f53bb0f1 · facts from BC30
Properties
| Property | Value |
|---|---|
| Access | Internal |
| Permissions | tabledata “Agent Task” = R |
Procedures
OpenAll()(internal)OpenByState(State: Enum "PA Work Item State")(internal)Next(var WorkItem: Codeunit "PA Work Item"): Boolean(internal)GetCountsByState(var Counts: Dictionary of [Enum "PA Work Item State", Integer])(internal)
Plus 7 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 3341 “PA Work Item” (5 calls:
GetCountsByState → GetState,GetCountsByState → LoadByAgentTaskId,NextAccepted → GetState, …) - Codeunit 3350 “PA Agent Access” (1 call:
InitializeTaskCandidates → TryGetAgentViewTaskId)
Called by
- Codeunit 3330 “PA Work Item Presentation” (3 calls:
InsertCollectionRows → Next,LoadAllRows → OpenAll,LoadRowsByState → OpenByState) - Page 3310 “Payables Agent Activities” (1 call:
OnOpenPage → GetCountsByState)
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.
- Supervise Agent Activities in Business Central — possibly related: Work item collection manages multiple supervisor tasks for agent activity oversight (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 Work Item Collection"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.