Codeunit 3307 Payables Agent Setup

Payables Agent, Microsoft.Agent.PayablesAgent

src/Apps/W1/PayablesAgent/app/Setup/PayablesAgentSetup.Codeunit.al30 procedures and triggers, in source order. Copyright (c) Microsoft Corporation. MIT

LoadSetupConfiguration line 44

  1. 54callsCodeunit 3304 PA Setup Configuration GetSkipAgentConfiguration
  2. 55callsGetAgent
  3. 56callsCodeunit 4324 Agent Setup GetSetupRecord
  4. 60callsAgentUserName
  5. 61callsAgentDisplayName
  6. 64callsCodeunit 3304 PA Setup Configuration SetAgentSetupBuffer
  7. 67callsTable 3303 Payables Agent Setup GetSetup
  8. 71callsCodeunit 3304 PA Setup Configuration SetPayablesAgentSetup
  9. 72callsCodeunit 3304 PA Setup Configuration SetEDocumentService
  10. 73callsCodeunit 3304 PA Setup Configuration SetOutlookSetup

ApplyPayablesAgentSetup line 81

  1. 102callsCodeunit 9024 Azure AD Graph User IsUserDelegatedAdmin
  2. 102callsCodeunit 9024 Azure AD Graph User IsUserDelegatedHelpdesk
  3. 108callsCodeunit 3304 PA Setup Configuration GetAgentSetupBuffer
  4. 108callsCodeunit 3304 PA Setup Configuration GetAgentSetupBuffer
  5. 109callsCodeunit 3304 PA Setup Configuration GetPayablesAgentSetup
  6. 110callsCodeunit 3304 PA Setup Configuration GetPayablesAgentSetup
  7. 117callsCodeunit 3304 PA Setup Configuration GetAgentSetupBuffer
  8. 117callsCodeunit 3304 PA Setup Configuration GetAgentSetupBuffer
  9. 118callsCodeunit 3304 PA Setup Configuration GetPayablesAgentSetup
  10. 125callsCodeunit 3304 PA Setup Configuration GetOutlookSetup
  11. 126callsCodeunit 3304 PA Setup Configuration GetOutlookSetup
  12. 127callsCodeunit 3304 PA Setup Configuration GetOutlookSetup
  13. 128callsCodeunit 3304 PA Setup Configuration GetOutlookSetup
  14. 129callsCodeunit 3304 PA Setup Configuration GetOutlookSetup
  15. 133callsCodeunit 3304 PA Setup Configuration GetAgentSetupBuffer
  16. 133callsCodeunit 3304 PA Setup Configuration GetAgentSetupBuffer
  17. 134callsCodeunit 3304 PA Setup Configuration GetSkipEmailVerification
  18. 136callsCodeunit 3304 PA Setup Configuration GetPayablesAgentSetup
  19. 137callsCodeunit 3304 PA Setup Configuration GetOutlookSetup
  20. 141callsCodeunit 3304 PA Setup Configuration GetPayablesAgentSetup
  21. 143callsCodeunit 3304 PA Setup Configuration SetPayablesAgentSetup
  22. 146callsCodeunit 457 Environment Information IsSaaS
  23. 146callsCodeunit 3304 PA Setup Configuration GetPayablesAgentSetup
  24. 147callsCodeunit 3310 PA Validate Setup SetOutlookSetup
  25. 148runsCodeunit 3310 PA Validate Setup
  26. 150callsCodeunit 3304 PA Setup Configuration GetEmailAccount
  27. 164callsCodeunit 3304 PA Setup Configuration GetAgentSetupBuffer
  28. 164callsCodeunit 3304 PA Setup Configuration GetAgentSetupBuffer
  29. 165callsInitializeTrialIfEligible
  30. 168callsTable 3303 Payables Agent Setup GetSetup
  31. 169callsCodeunit 3304 PA Setup Configuration GetPayablesAgentSetup
  32. 172callsCodeunit 3304 PA Setup Configuration GetSkipAgentConfiguration
  33. 173callsApplyAgentSetup
  34. 176callsApplyEDocumentServiceSetup
  35. 177writesTable 3303 Payables Agent Setup Modify
  36. 179callsCodeunit 6196 E-Doc. PO Matching ConfigureDefaultPOMatchingSettings
  37. 180callsCodeunit 3309 PA Demo Guide SendDemoEmail
  38. 182callsInsertAccessControlForEligibleUsers

GetOrCreateAgentEDocumentService line 185

  1. 191writesTable 6103 E-Document Service Insert(true)
  2. 193callsTable 6122 E-Doc. Service Supported Type InsertDefaultIfMissing
  3. 194callsTable 6122 E-Doc. Service Supported Type InsertDefaultIfMissing

AllowCreditMemosOnAgentEDocumentService line 198, internal

  1. 204callsTable 6122 E-Doc. Service Supported Type InsertDefaultIfMissing

WasEDocumentCreatedByAgent line 207

  1. 209callsTable 6121 E-Document GetEDocumentService

GetAgent line 228

  1. 233callsTable 3303 Payables Agent Setup GetSetup
  2. 241callsAgentUserName
  3. 245writesTable 3303 Payables Agent Setup Modify

SetAgentInstructions line 249, internal

  1. 257callsApplyAgentInstructions
  2. 259callsTable 3303 Payables Agent Setup GetSetup
  3. 262writesTable 3303 Payables Agent Setup Modify

ApplyAgentInstructions line 271, local

  1. 279callsIsAgentDrivenLineMatchingEnabled
  2. 284callsCodeunit 2200 Azure Key Vault GetAzureKeyVaultSecret
  3. 287callsFeatureName
  4. 290callsCodeunit 4321 Agent SetInstructions
  5. 292callsGetInstructionsConfigHash

IsAgentDrivenLineMatchingEnabled line 298, internal

  1. 302callsCodeunit 8347 Feature Configuration GetConfiguration

EnsureAgentInstructionsMatchConfiguration line 311, internal

  1. 317callsTable 3303 Payables Agent Setup GetSetup
  2. 318callsGetInstructionsConfigHash
  3. 320callsFeatureName
  4. 321callsSetAgentInstructions

TryEnsureAgentInstructionsMatchConfiguration line 330, internal

  1. 332callsEnsureAgentInstructionsMatchConfiguration

GetInstructionsConfigHash line 340, internal

  1. 348callsGetInstructionsExperimentKeys
  2. 351callsCodeunit 8347 Feature Configuration GetConfiguration
  3. 354callsCodeunit 1266 Cryptography Management GenerateHash

CanShowAgentActions line 364, internal

  1. 371callsCodeunit 2000000022 Agent Utilities IsAgentsFeatureEnabled
  2. 374callsCodeunit 7773 Copilot Capability IsCapabilityActive
  3. 377callsCodeunit 3307 Payables Agent Setup GetAgent
  4. 378callsAllowCreateNewAgent

InsertAccessControlForEligibleUsers line 387, internal

  1. 393callsGetUsersThatHaveCreatedPostedPurchInvoice
  2. 407writesTable 2000000261 Agent Access Control Insert

AllowCreateNewAgent line 416, internal

  1. 424callsCodeunit 2000000022 Agent Utilities IsAgentsFeatureEnabled
  2. 427callsCodeunit 7773 Copilot Capability IsCapabilityActive
  3. 430callsCodeunit 3307 Payables Agent Setup GetAgent
  4. 434callsCodeunit 4317 Agent System Permissions CurrentUserHasCanManageAllAgentsPermission
  5. 437callsCodeunit 2000000022 Agent Utilities CanCurrentUserCreateAgent
  6. 440callsHasUserCreatedPostedPurchInvoice

ApplyAgentSetup line 458, local

  1. 470callsCodeunit 3304 PA Setup Configuration GetAgentSetupBuffer
  2. 471callsCodeunit 4324 Agent Setup SaveChanges
  3. 482callsCodeunit 152 User Permissions IsSuper
  4. 482callsCodeunit 152 User Permissions HasUserPermissionSetAssigned
  5. 484callsCodeunit 152 User Permissions AssignPermissionSets
  6. 490callsApplyAgentInstructions

ApplyEDocumentServiceSetup line 494, local

  1. 500callsCodeunit 3304 PA Setup Configuration GetAgentSetupBuffer
  2. 500callsCodeunit 3304 PA Setup Configuration GetAgentSetupBuffer
  3. 502validatesTable 6103 E-Document Service Auto Import
  4. 503writesTable 6103 E-Document Service Modify
  5. 507callsGetOrCreateAgentEDocumentService
  6. 509validatesTable 6103 E-Document Service Automatic Import Processing
  7. 510validatesTable 6103 E-Document Service Import Process
  8. 514writesTable 6103 E-Document Service Modify
  9. 516validatesTable 6103 E-Document Service Auto Import
  10. 518callsCodeunit 3304 PA Setup Configuration GetPayablesAgentSetup
  11. 519validatesTable 6103 E-Document Service Service Integration V2
  12. 520validatesTable 6103 E-Document Service Auto Import
  13. 526validatesTable 6103 E-Document Service Auto Import
  14. 527writesTable 6103 E-Document Service Modify

InitializeTrialIfEligible line 531, local

  1. 535callsCodeunit 3318 PA Trial IsEligibleToStart
  2. 536callsCodeunit 3318 PA Trial StartTrial

EnsureAgentActivated line 546, internal

  1. 553callsTable 3303 Payables Agent Setup GetSetup
  2. 560callsLoadSetupConfiguration
  3. 561callsCodeunit 3304 PA Setup Configuration GetPayablesAgentSetup
  4. 564callsCodeunit 3304 PA Setup Configuration SetPayablesAgentSetup
  5. 565callsCodeunit 3304 PA Setup Configuration GetAgentSetupBuffer
  6. 566validatesTable 4310 Agent Setup Buffer State
  7. 567callsCodeunit 3304 PA Setup Configuration SetAgentSetupBuffer
  8. 568callsCodeunit 3304 PA Setup Configuration SetSkipEmailVerification
  9. 569callsApplyPayablesAgentSetup

GetDefaultProfile line 573, internal

  1. 579callsCodeunit 4321 Agent PopulateDefaultProfile

GetDefaultAccessControls line 582, internal

  1. 592writesTable 2000000291 Access Control Buffer Insert

HandleOnAfterCreatedNewCompanyByCopyCompany line 596, local

  1. 602writesTable 3303 Payables Agent Setup DeleteAll
  2. 605writesTable 3304 Payables Agent KPI DeleteAll

ImportInvoiceFile line 657

  1. 663callsCodeunit 6140 E-Doc. Import CreateFromType
  2. 663callsCodeunit 3307 Payables Agent Setup GetOrCreateAgentEDocumentService
  3. 665writesTable 6121 E-Document Modify
  4. 666callsCodeunit 6140 E-Doc. Import ProcessAutomaticallyIncomingEDocument

ShouldRequestReview line 674

  1. 684callsTable 3303 Payables Agent Setup GetSetup
  2. 694callsMonitoredFolderConfigured
  3. 698callsIsSenderAuthenticated
  4. 702callsTable 3308 PA Known Sender GetForEDocument
  5. 706callsIsSenderInternal

IsSenderRejected line 717

  1. 721callsTable 3308 PA Known Sender GetForEDocument

IsSenderAuthenticated line 740

  1. 744callsTryGetSourceEmailHeader
  2. 745callsCompAuthPassed
  3. 747callsIsSenderInternal

IsSenderInternal line 756

  1. 760callsTryGetSourceEmailHeader

TryGetSourceEmailHeader line 765, local

  1. 771callsCodeunit 8904 Email Message Get
  2. 773callsCodeunit 8904 Email Message GetHeader

ClassifyKnownSendersUnusedByChange line 789

  1. 796callsClassifyByPolicyAndFolder

ClassifyKnownSendersUnusedReason line 803

  1. 805callsClassifyByPolicyAndFolder