---
id: object/codeunit/3344
type: object
title: Codeunit 3344 "PA Setup Update"
summary: Codeunit 3344 "PA Setup Update" in PayablesAgent (Microsoft.Agent.PayablesAgent). 2 public procedures, 1 event subscribers. 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: 8bcd581870556f1026cc2d86079f6bc3213e9be5126e2b1c98468c41d3e2af7c
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/f53bb0f1ecd89fde9f133f9dcaf5bf43cf5f2671/src/Apps/W1/PayablesAgent/app/Flows/Configuration/PASetupUpdate.Codeunit.al
    title: src/Apps/W1/PayablesAgent/app/Flows/Configuration/PASetupUpdate.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: Handles Payables Agent setup and configuration in Business Central
      by: model
object_type: codeunit
object_id: 3344
name: PA Setup Update
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: 9
  events: 0
  subscribers: 1
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 16
  called_by: 2
  implements: 0
---

# Codeunit 3344 "PA Setup Update"

> Codeunit 3344 "PA Setup Update" in PayablesAgent (Microsoft.Agent.PayablesAgent). 2 public procedures, 1 event subscribers. 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/PASetupUpdate.Codeunit.al) · facts from BC30

## Properties

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

## Event subscriptions

- HandleOnAfterCreatedNewCompanyByCopyCompany subscribes to Report "Copy Company" OnAfterCreatedNewCompanyByCopyCompany

## Procedures

- `Update(var PASetupUpdateParameters: Codeunit "PA Setup Update Parameters")` (internal)
- `EnsureActivated(var AlreadyActivated: Boolean)` (internal)

Plus 6 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 3343 "PA Setup"](../codeunit/3343.md) (17 calls: `ApplySetup → ApplySetup`, `ApplySetup → GetAppliedInstrConfigHash`, `ApplySetup → SetAppliedInstrConfigHash`, …)
- [Codeunit 3321 "PA Setup Update Parameters"](../codeunit/3321.md) (13 calls: `ApplySetup → Activating`, `ApplySetup → GetSkipAgentConfiguration`, `ConfigureAgent → GetAgentSetupBuffer`, …)
- [Codeunit 3325 "PA Telemetry"](../codeunit/3325.md) (3 calls: `InitializeTrialIfEligible → LogTrialInitializedOnActivation`, `ProcessTrialUploadIfPending → LogTrialUpload`, `Update → LogSetupStarted`)
- [Codeunit 3310 "PA Validate Setup"](../codeunit/3310.md) (2 calls: `ValidateMailbox → (object)`, `ValidateMailbox → ConfigureSetupToValidate`)
- [Codeunit 3318 "PA Trial"](../codeunit/3318.md) (2 calls: `InitializeTrialIfEligible → IsEligibleToStart`, `InitializeTrialIfEligible → StartTrial`)
- [Codeunit 4321 "Agent"](../codeunit/4321.md) (2 calls: `ConfigureAgent → SetProfile`, `ConfigureAgent → UpdateAccessControl`)
- [Codeunit 9024 "Azure AD Graph User"](../codeunit/9024.md) (2 calls: `Update → IsUserDelegatedAdmin`, `Update → IsUserDelegatedHelpdesk`)
- [Codeunit 1820 "Customer Consent Mgt."](../codeunit/1820.md) (1 call: `ObtainConsent → ConfirmUserConsentToMicrosoftService`)
- [Codeunit 3309 "PA Demo Guide"](../codeunit/3309.md) (1 call: `Update → SendDemoEmail`)
- [Codeunit 3345 "PA Work Item Intake"](../codeunit/3345.md) (1 call: `ProcessTrialUploadIfPending → ReceivePdf`)
- [Codeunit 3349 "PA Agent Instructions"](../codeunit/3349.md) (1 call: `ConfigureAgent → ApplyAgentInstructions`)
- [Codeunit 3350 "PA Agent Access"](../codeunit/3350.md) (1 call: `Update → InsertAccessControlForEligibleUsers`)
- [Codeunit 4100 "Temp Blob"](../codeunit/4100.md) (1 call: `ProcessTrialUploadIfPending → CreateInStream`)
- [Codeunit 4324 "Agent Setup"](../codeunit/4324.md) (1 call: `ConfigureAgent → SaveChanges`)
- [Codeunit 457 "Environment Information"](../codeunit/457.md) (1 call: `ValidateMailbox → IsSaaS`)
- [Codeunit 8894 "Email Account"](../codeunit/8894.md) (1 call: `ValidateMailbox → GetAllAccounts`)

## Called by

- [Codeunit 3326 "PA Test Fixtures"](../codeunit/3326.md) (2 calls: `EnsureActivatedAndReceivePdf → EnsureActivated`, `Reset → Update`)
- [Page 3304 "Payables Agent Setup"](../page/3304.md) (1 call: `ApplySetup → Update`)

## Recent changes

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

## 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: Handles Payables Agent setup and configuration in Business Central (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")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
