Codeunit 3343 "PA Setup"
PayablesAgent · Microsoft.Agent.PayablesAgent
Across versions
- BC23-29not present
- BC30present
Neighbourhood 21 connected objects and pages
PayablesAgent · Microsoft.Agent.PayablesAgent · BC30 · source at f53bb0f1 · facts from BC30
Properties
| Property | Value |
|---|---|
| Access | Internal |
| Permissions | tabledata “Payables Agent Setup” = RIMD, tabledata Agent = R |
Procedures
LoadOrCreateSetup()(internal)LoadStoredOrDefaults()(internal)TryFindAgent(var Agent: Record Agent): Boolean(internal)TryGetStoredAgent(var Agent: Record Agent): Boolean(internal)FindAgentAndReconcileSetup(var Agent: Record Agent): Boolean(internal)IsStoredAgentEnabled(): Boolean(internal)AgentUserName(): Code[50](internal)GetPageRecord(): Record "Payables Agent Setup"(internal)ResetProposal()(internal)GetMonitorOutlook(): Boolean(internal)SetMonitorOutlook(Value: Boolean)(internal)GetEmailReviewPolicy(): Enum "PA Email Review Policy"(internal)SetEmailReviewPolicy(Value: Enum "PA Email Review Policy")(internal)SetMailboxSelection(AccountId: Guid; FolderName: Text[2048]; FolderId: Text[2048])(internal)GetEmailAccountId(): Guid(internal)GetEmailFolder(): Text[2048](internal)GetEmailFolderId(): Text[2048](internal)GetEmailMonitoringConsent(): Boolean(internal)SetEmailMonitoringConsent(Value: Boolean)(internal)GetLastSyncAt(): DateTime(internal)GetUserSecurityId(): Guid(internal)SetUserSecurityId(Value: Guid)(internal)GetLastActivated(): DateTime(internal)SetLastActivated(Value: DateTime)(internal)GetAppliedInstrConfigHash(): Text[64](internal)SetAppliedInstrConfigHash(Value: Text[64])(internal)GetAgentProfile(): Text[30](internal)GetAgentPermissionSet(): Code[20](internal)SupportsEmailMonitoring(): Boolean(internal)SupportsAdditionalFields(): Boolean(internal)PrepareForApply(Enabling: Boolean)(internal)ApplySetup(Enabling: Boolean)(internal)SaveUserSecurityId(UserSecurityId: Guid)(internal)SaveAppliedInstrConfigHash(AppliedInstrConfigHash: Text[64])(internal)DeleteSetup(TargetCompanyName: Text[30])(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” (16 calls:
ApplySetup → DisableMonitoring,ApplySetup → Synchronize,GetEmailAccountId → GetEmailAccountId, …) - Codeunit 3339 “PA V1V2 Flag” (5 calls:
LoadSetup → IsV2Active,PrepareForApply → IsV2Active,ResetProposal → IsV2Active, …) - Codeunit 8894 “Email Account” (1 call:
ApplySetup → GetAllAccounts) - Page extension 9204 “User Settings” (1 call:
CanAgentAccessCurrentCompany → (object))
Called by
- Codeunit 3344 “PA Setup Update” (17 calls:
ApplySetup → ApplySetup,ApplySetup → GetAppliedInstrConfigHash,ApplySetup → SetAppliedInstrConfigHash, …) - Codeunit 3321 “PA Setup Update Parameters” (9 calls:
DisactivateEmailMonitoring → SetMonitorOutlook,GetEmailAccount → GetEmailAccountId,InitializeFromStoredSetup → AgentUserName, …) - Codeunit 3326 “PA Test Fixtures” (7 calls:
Reset → ApplySetup,Reset → DeleteSetup,Reset → LoadOrCreateSetup, …) - Codeunit 3352 “Payables Agent Metadata” (4 calls:
GetDefaultAccessControls → GetAgentPermissionSet,GetDefaultAccessControls → LoadStoredOrDefaults,GetDefaultProfile → GetAgentProfile, …) - Codeunit 3317 “Payables Agent OCV” (3 calls:
HasProcessedEnoughDocumentsForFeedback → GetLastActivated,HasProcessedEnoughDocumentsForFeedback → LoadOrCreateSetup,HasProcessedEnoughDocumentsForFeedback → TryFindAgent) - Codeunit 3349 “PA Agent Instructions” (3 calls:
EnsureAgentInstructionsMatchConfiguration → GetAppliedInstrConfigHash,EnsureAgentInstructionsMatchConfiguration → LoadStoredOrDefaults,SetAgentInstructions → SaveAppliedInstrConfigHash) - Codeunit 3351 “PA Known Senders” (3 calls:
ShouldRequestReview → GetEmailFolder,ShouldRequestReview → GetEmailReviewPolicy,ShouldRequestReview → LoadOrCreateSetup) - Page 3304 “Payables Agent Setup” (3 calls:
OnAfterGetCurrRecord → SupportsEmailMonitoring,OnOpenPage → GetPageRecord,OnOpenPage → SupportsAdditionalFields) - Page 3313 “PA Known Senders” (3 calls:
OnOpenPage → GetEmailFolder,OnOpenPage → GetEmailReviewPolicy,OnOpenPage → LoadStoredOrDefaults) - Codeunit 3310 “PA Validate Setup” (2 calls:
OnRun → GetEmailAccountId,OnRun → GetLastSyncAt) - Codeunit 3318 “PA Trial” (2 calls:
IsEligibleToStart → GetUserSecurityId,IsEligibleToStart → LoadStoredOrDefaults) - Codeunit 3325 “PA Telemetry” (2 calls:
EnsureSetupAndBuildWorkItemDimensions → GetEmailReviewPolicy,EnsureSetupAndBuildWorkItemDimensions → LoadOrCreateSetup) - Codeunit 3350 “PA Agent Access” (2 calls:
AllowCreateNewAgent → TryGetStoredAgent,CanShowAgentActions → TryGetStoredAgent) - Table 3308 “PA Known Sender” (2 calls:
InsertSenderIfNew → GetEmailReviewPolicy,InsertSenderIfNew → LoadOrCreateSetup) - Codeunit 3305 “Payables Agent Upgrade” (1 call:
AlwaysUpdateAgentInformationOnUpgrade → FindAgentAndReconcileSetup) - Codeunit 3327 “PA Work Item Upload” (1 call:
ShowTaskPane → TryFindAgent) - Codeunit 3345 “PA Work Item Intake” (1 call:
Admit → FindAgentAndReconcileSetup)
Recent changes
- 2026-11-26 #14527 Don’t reuse a Payables Agent user that has no permissions in the company (main, BC30, fix)
- 2026-11-25 #14442 Offer the Payables Agent again in a company recreated with the same name (main, BC30, fix)
- 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: Setup codeunit configures Payables Agent mailbox monitoring, rules, and access control (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 Setup"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.