Codeunit 3350 "PA Agent Access"
PayablesAgent · Microsoft.Agent.PayablesAgent
Across versions
- BC23-29not present
- BC30present
Neighbourhood 15 connected objects and pages
PayablesAgent · Microsoft.Agent.PayablesAgent · BC30 · source at f53bb0f1 · facts from BC30
Properties
| Property | Value |
|---|---|
| Access | Internal |
Procedures
TryGetRuntimeAgentTaskId(var AgentTaskId: BigInteger): Boolean(internal)TryGetAgentViewTaskId(var AgentTaskId: BigInteger): Boolean(internal)IsAgentView(): Boolean(internal)TryGetRuntimeTaskOwnership(AgentTask: Record "Agent Task"; var IsOwned: Boolean): Boolean(internal)CanShowAgentActions(): Boolean(internal)AllowCreateNewAgent(): Boolean(internal)HasUserCreatedPostedPurchInvoice(): Boolean(internal)GetUsersThatHaveCreatedPostedPurchInvoice(): List of [Guid](internal)InsertAccessControlForEligibleUsers(AgentUserSecurityId: Guid)(internal)
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 4312 “Agent Session” (4 calls:
CanShowAgentActions → IsAgentSession,TryGetRuntimeAgentTaskId → GetCurrentSessionAgentTaskId,TryGetRuntimeAgentTaskId → IsAgentSession, …) - Codeunit 3343 “PA Setup” (2 calls:
AllowCreateNewAgent → TryGetStoredAgent,CanShowAgentActions → TryGetStoredAgent) - Codeunit 7773 “Copilot Capability” (2 calls:
AllowCreateNewAgent → IsCapabilityActive,CanShowAgentActions → IsCapabilityActive) - Codeunit 4317 “Agent System Permissions” (1 call:
AllowCreateNewAgent → CurrentUserHasCanManageAllAgentsPermission)
Called by
- Codeunit 3341 “PA Work Item” (2 calls:
LoadCurrentSession → TryGetRuntimeAgentTaskId,TryGetOwnedAgentTask → TryGetRuntimeTaskOwnership) - Page 3333 “Payables Agent Work Items” (2 calls:
OnOpenPage → CanShowAgentActions,OnOpenPage → IsAgentView) - Codeunit 3306 “Payables Agent KPI” (1 call:
CountPurchaseInvoiceCreatedByAgent → TryGetRuntimeAgentTaskId) - Codeunit 3308 “PA Open Current E-Document” (1 call:
CurrentDocumentNo → TryGetAgentViewTaskId) - Codeunit 3312 “PA Draft Based Subscribers” (1 call:
RecordKnownSenderOnAgentProcessingStep → TryGetRuntimeAgentTaskId) - Codeunit 3332 “PA Draft Based Work Item” (1 call:
LoadForAgentTask → TryGetRuntimeTaskOwnership) - Codeunit 3334 “PA Billing Binding” (1 call:
RegisterSubscribersOnAfterLogin → TryGetRuntimeAgentTaskId) - Codeunit 3342 “PA Work Item Collection” (1 call:
InitializeTaskCandidates → TryGetAgentViewTaskId) - Codeunit 3344 “PA Setup Update” (1 call:
Update → InsertAccessControlForEligibleUsers) - Codeunit 3352 “Payables Agent Metadata” (1 call:
ShowCanCreateAgent → AllowCreateNewAgent) - Page extension 3309 “PA Purchase Invoice List” (1 call:
OnOpenPage → CanShowAgentActions)
Recent changes
- 2026-11-25 #14442 Offer the Payables Agent again in a company recreated with the same name (main, BC30, fix)
- 2026-11-21 #14329 Optimizing check for PA eligibility (main, BC30, performance)
- 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.
- Set Up Payables Agent in Business Central — possibly related: Controls user access configuration for Payables Agent setup (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 Agent Access"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.