---
id: object/codeunit/3321
type: object
title: Codeunit 3321 "PA Setup Update Parameters"
summary: Codeunit 3321 "PA Setup Update Parameters" in PayablesAgent (Microsoft.Agent.PayablesAgent). 18 public procedures. Introduced in BC30.
tier: official
language: en
tags:
  - codeunit
  - payablesagent
versions:
  introduced: "30"
  last_changed: null
  deprecated: null
review:
  state: derived
  by: null
  at: null
  flags: []
generated:
  at: "2026-12-01T01:00:51.425Z"
  pipeline: 0.2.0
  prompts: {}
  input_hash: 267e9e527f861e9e2b47fee9de2842a81c02cac075a355a8a39fd1439d4a0c05
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/f53bb0f1ecd89fde9f133f9dcaf5bf43cf5f2671/src/Apps/W1/PayablesAgent/app/Flows/Configuration/PASetupUpdateParameters.Codeunit.al
    title: src/Apps/W1/PayablesAgent/app/Flows/Configuration/PASetupUpdateParameters.Codeunit.al (main)
    date: null
    commit: f53bb0f1ecd89fde9f133f9dcaf5bf43cf5f2671
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes:
    - change/bcapps/13361
  related:
    - to: https://learn.microsoft.com/dynamics365/business-central/payables-agent-setup
      title: Set Up Payables Agent in Business Central
      label: possibly related
      why: Codeunit manages setup parameters and configuration updates for Payables Agent
      by: model
object_type: codeunit
object_id: 3321
name: PA Setup Update Parameters
namespace: Microsoft.Agent.PayablesAgent
app: PayablesAgent
extends: null
first_version: "30"
last_version: "30"
present_in:
  - "30"
changed_in: []
source_major: "30"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 18
  events: 0
  subscribers: 0
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 5
  called_by: 6
  implements: 0
---

# Codeunit 3321 "PA Setup Update Parameters"

> Codeunit 3321 "PA Setup Update Parameters" in PayablesAgent (Microsoft.Agent.PayablesAgent). 18 public procedures. Introduced in BC30.

PayablesAgent · Microsoft.Agent.PayablesAgent · BC30 · [source at f53bb0f1](https://github.com/microsoft/BCApps/blob/f53bb0f1ecd89fde9f133f9dcaf5bf43cf5f2671/src/Apps/W1/PayablesAgent/app/Flows/Configuration/PASetupUpdateParameters.Codeunit.al) · facts from BC30

## Properties

| Property | Value |
|---|---|
| Access | Internal |

## Procedures

- `GetSkipAgentConfiguration(): Boolean` (internal)
- `SetSkipAgentConfiguration(LocalSkipAgentConfiguration: Boolean)` (internal)
- `GetSkipEmailVerification(): Boolean` (internal)
- `SetSkipEmailVerification(LocalSkipEmailVerification: Boolean)` (internal)
- `InitializeFromStoredSetup()` (internal)
- `CopyProposal(var Proposal: Codeunit "PA Setup")`
- `SetEmailMonitoring(Enabled: Boolean; ReviewPolicy: Enum "PA Email Review Policy"; AccountId: Guid; FolderName: Text[2048]; FolderId: Text[2048])`
- `Activating(): Boolean`
- `ActivateAgent()`
- `MonitorEmail(): Boolean`
- `DisactivateEmailMonitoring()`
- `GetEmailAccount(): Record "Email Account"`
- `GetAgentSetupBuffer(var TargetAgentSetupBuffer: Record "Agent Setup Buffer")`
- `SetAgentSetupBuffer(var SourceAgentSetupBuffer: Record "Agent Setup Buffer")`
- `SetTrialUpload(FileName: Text; InStream: InStream)`
- `HasTrialUpload(): Boolean`
- `TryGetTrialUpload(var FileName: Text; var TempBlob: Codeunit "Temp Blob"): Boolean`
- `ClearTrialUpload()`

## 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 3343 "PA Setup"](../codeunit/3343.md) (9 calls: `DisactivateEmailMonitoring → SetMonitorOutlook`, `GetEmailAccount → GetEmailAccountId`, `InitializeFromStoredSetup → AgentUserName`, …)
- [Codeunit 4324 "Agent Setup"](../codeunit/4324.md) (3 calls: `GetAgentSetupBuffer → CopySetupRecord`, `InitializeFromStoredSetup → GetSetupRecord`, `SetAgentSetupBuffer → CopySetupRecord`)
- [Codeunit 3352 "Payables Agent Metadata"](../codeunit/3352.md) (2 calls: `InitializeFromStoredSetup → AgentDisplayName`, `InitializeFromStoredSetup → AgentSummary`)
- [Codeunit 4100 "Temp Blob"](../codeunit/4100.md) (1 call: `SetTrialUpload → CreateOutStream`)
- [Codeunit 8894 "Email Account"](../codeunit/8894.md) (1 call: `GetEmailAccount → GetAllAccounts`)

## Called by

- [Codeunit 3344 "PA Setup Update"](../codeunit/3344.md) (13 calls: `ApplySetup → Activating`, `ApplySetup → GetSkipAgentConfiguration`, `ConfigureAgent → GetAgentSetupBuffer`, …)
- [Page 3304 "Payables Agent Setup"](../page/3304.md) (8 calls: `BuildSetupConfiguration → SetAgentSetupBuffer`, `BuildSetupConfiguration → SetEmailMonitoring`, `OnOpenPage → CopyProposal`, …)
- [Codeunit 3326 "PA Test Fixtures"](../codeunit/3326.md) (7 calls: `LoadConfiguration → InitializeFromStoredSetup`, `LoadConfiguration → SetSkipAgentConfiguration`, `LoadConfiguration → SetSkipEmailVerification`, …)
- [Codeunit 3309 "PA Demo Guide"](../codeunit/3309.md) (4 calls: `IsEmailConfiguredForDemoEmail → GetEmailAccount`, `IsEmailConfiguredForDemoEmail → MonitorEmail`, `SendDemoEmail → GetAgentSetupBuffer`, …)
- [Page 3307 "PA Demo Guide"](../page/3307.md) (2 calls: `OnOpenPage → InitializeFromStoredSetup`, `SendDemoInvoices → GetEmailAccount`)
- [Page extension 3305 "AgentTaskList"](../pageextension/3305.md) (2 calls: `CreatePATask → GetAgentSetupBuffer`, `CreatePATask → InitializeFromStoredSetup`)

## Recent changes

- 2026-11-14 [#13361 Foundation for Payables Agent V2.0](../../changes/bcapps/13361.md) (main, BC30, refactor, renamed)

## Across versions

- Present in: BC30
- Changed (declaration) in: none

## 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](https://learn.microsoft.com/dynamics365/business-central/payables-agent-setup) — possibly related: Codeunit manages setup parameters and configuration updates for Payables Agent (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 Update Parameters")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
