---
title: "Codeunit 4321 Agent, extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/4321-agent/points/
object: https://jonas-paprotka.de/ref/codeunit/4321-agent/
app: "System Application"
major: 29
source: https://jonas-paprotka.de/ref/codeunit/4321-agent/source/
checked: 2026-11-20
changed: 2026-10-05
subject: "Microsoft Dynamics 365 Business Central"
license: "Metadata from Microsoft's symbol packages. AL source MIT, Copyright (c) Microsoft Corporation. Selection and wording © 2026 JOP-AL. https://jonas-paprotka.de/licenses/"
---

# Codeunit 4321 Agent, extension points 29

JOP-AL, https://jonas-paprotka.de/ref/codeunit/4321-agent/points/

30 procedures and triggers with a step in src/System Application/App/Agent/Setup/Agent.Codeunit.al, in source order, read from the text, not from a run.

## Create

[Line 28](https://jonas-paprotka.de/ref/codeunit/4321-agent/source/#L28).

- [32](https://jonas-paprotka.de/ref/codeunit/4321-agent/source/#L32) calls [Codeunit 2000000020 Feature Access Management](https://jonas-paprotka.de/ref/codeunit/2000000020-feature-access-management/) `AgentManagementAllowed`
- [33](https://jonas-paprotka.de/ref/codeunit/4321-agent/source/#L33) calls [Codeunit 4301 Agent Impl.](https://jonas-paprotka.de/ref/codeunit/4301-agent-impl/) `CreateAgent`

## Activate

[Line 40](https://jonas-paprotka.de/ref/codeunit/4321-agent/source/#L40).

- [44](https://jonas-paprotka.de/ref/codeunit/4321-agent/source/#L44) calls [Codeunit 2000000020 Feature Access Management](https://jonas-paprotka.de/ref/codeunit/2000000020-feature-access-management/) `AgentManagementAllowed`
- [45](https://jonas-paprotka.de/ref/codeunit/4321-agent/source/#L45) calls [Codeunit 4301 Agent Impl.](https://jonas-paprotka.de/ref/codeunit/4301-agent-impl/) `Activate`

## Deactivate

[Line 52](https://jonas-paprotka.de/ref/codeunit/4321-agent/source/#L52).

- [56](https://jonas-paprotka.de/ref/codeunit/4321-agent/source/#L56) calls [Codeunit 2000000020 Feature Access Management](https://jonas-paprotka.de/ref/codeunit/2000000020-feature-access-management/) `AgentManagementAllowed`
- [57](https://jonas-paprotka.de/ref/codeunit/4321-agent/source/#L57) calls [Codeunit 4301 Agent Impl.](https://jonas-paprotka.de/ref/codeunit/4301-agent-impl/) `Deactivate`

## Archive

[Line 65](https://jonas-paprotka.de/ref/codeunit/4321-agent/source/#L65).

- [69](https://jonas-paprotka.de/ref/codeunit/4321-agent/source/#L69) calls [Codeunit 2000000020 Feature Access Management](https://jonas-paprotka.de/ref/codeunit/2000000020-feature-access-management/) `AgentManagementAllowed`
- [70](https://jonas-paprotka.de/ref/codeunit/4321-agent/source/#L70) calls [Codeunit 4301 Agent Impl.](https://jonas-paprotka.de/ref/codeunit/4301-agent-impl/) `Archive`

## IsArchivingSupported

[Line 78](https://jonas-paprotka.de/ref/codeunit/4321-agent/source/#L78).

- [82](https://jonas-paprotka.de/ref/codeunit/4321-agent/source/#L82) calls [Codeunit 2000000020 Feature Access Management](https://jonas-paprotka.de/ref/codeunit/2000000020-feature-access-management/) `AgentManagementAllowed`
- [83](https://jonas-paprotka.de/ref/codeunit/4321-agent/source/#L83) calls [Codeunit 4301 Agent Impl.](https://jonas-paprotka.de/ref/codeunit/4301-agent-impl/) `IsArchivingSupported`

## IsArchived

[Line 91](https://jonas-paprotka.de/ref/codeunit/4321-agent/source/#L91).

- [95](https://jonas-paprotka.de/ref/codeunit/4321-agent/source/#L95) calls [Codeunit 2000000020 Feature Access Management](https://jonas-paprotka.de/ref/codeunit/2000000020-feature-access-management/) `AgentManagementAllowed`
- [96](https://jonas-paprotka.de/ref/codeunit/4321-agent/source/#L96) calls [Codeunit 4301 Agent Impl.](https://jonas-paprotka.de/ref/codeunit/4301-agent-impl/) `IsArchived`

## GetDisplayName

[Line 103](https://jonas-paprotka.de/ref/codeunit/4321-agent/source/#L103).

- [107](https://jonas-paprotka.de/ref/codeunit/4321-agent/source/#L107) calls [Codeunit 2000000020 Feature Access Management](https://jonas-paprotka.de/ref/codeunit/2000000020-feature-access-management/) `AgentManagementAllowed`
- [108](https://jonas-paprotka.de/ref/codeunit/4321-agent/source/#L108) calls [Codeunit 4301 Agent Impl.](https://jonas-paprotka.de/ref/codeunit/4301-agent-impl/) `GetDisplayName`

## GetUserName

[Line 115](https://jonas-paprotka.de/ref/codeunit/4321-agent/source/#L115).

- [119](https://jonas-paprotka.de/ref/codeunit/4321-agent/source/#L119) calls [Codeunit 2000000020 Feature Access Management](https://jonas-paprotka.de/ref/codeunit/2000000020-feature-access-management/) `AgentManagementAllowed`
- [120](https://jonas-paprotka.de/ref/codeunit/4321-agent/source/#L120) calls [Codeunit 4301 Agent Impl.](https://jonas-paprotka.de/ref/codeunit/4301-agent-impl/) `GetUserName`

## SetDisplayName

[Line 128](https://jonas-paprotka.de/ref/codeunit/4321-agent/source/#L128).

- [132](https://jonas-paprotka.de/ref/codeunit/4321-agent/source/#L132) calls [Codeunit 2000000020 Feature Access Management](https://jonas-paprotka.de/ref/codeunit/2000000020-feature-access-management/) `AgentManagementAllowed`
- [133](https://jonas-paprotka.de/ref/codeunit/4321-agent/source/#L133) calls [Codeunit 4301 Agent Impl.](https://jonas-paprotka.de/ref/codeunit/4301-agent-impl/) `SetDisplayName`

## GetModelId

[Line 142](https://jonas-paprotka.de/ref/codeunit/4321-agent/source/#L142).

- [146](https://jonas-paprotka.de/ref/codeunit/4321-agent/source/#L146) calls [Codeunit 2000000020 Feature Access Management](https://jonas-paprotka.de/ref/codeunit/2000000020-feature-access-management/) `AgentManagementAllowed`
- [147](https://jonas-paprotka.de/ref/codeunit/4321-agent/source/#L147) calls [Codeunit 4301 Agent Impl.](https://jonas-paprotka.de/ref/codeunit/4301-agent-impl/) `GetModelId`

## GetModelName

[Line 155](https://jonas-paprotka.de/ref/codeunit/4321-agent/source/#L155).

- [159](https://jonas-paprotka.de/ref/codeunit/4321-agent/source/#L159) calls [Codeunit 2000000020 Feature Access Management](https://jonas-paprotka.de/ref/codeunit/2000000020-feature-access-management/) `AgentManagementAllowed`
- [160](https://jonas-paprotka.de/ref/codeunit/4321-agent/source/#L160) calls [Codeunit 4301 Agent Impl.](https://jonas-paprotka.de/ref/codeunit/4301-agent-impl/) `GetModelName`

## SetModelId

[Line 168](https://jonas-paprotka.de/ref/codeunit/4321-agent/source/#L168).

- [172](https://jonas-paprotka.de/ref/codeunit/4321-agent/source/#L172) calls [Codeunit 2000000020 Feature Access Management](https://jonas-paprotka.de/ref/codeunit/2000000020-feature-access-management/) `AgentManagementAllowed`
- [173](https://jonas-paprotka.de/ref/codeunit/4321-agent/source/#L173) calls [Codeunit 4301 Agent Impl.](https://jonas-paprotka.de/ref/codeunit/4301-agent-impl/) `SetModelId`

## SetModelIdToAuto

[Line 180](https://jonas-paprotka.de/ref/codeunit/4321-agent/source/#L180).

- [184](https://jonas-paprotka.de/ref/codeunit/4321-agent/source/#L184) calls [Codeunit 2000000020 Feature Access Management](https://jonas-paprotka.de/ref/codeunit/2000000020-feature-access-management/) `AgentManagementAllowed`
- [185](https://jonas-paprotka.de/ref/codeunit/4321-agent/source/#L185) calls [Codeunit 4301 Agent Impl.](https://jonas-paprotka.de/ref/codeunit/4301-agent-impl/) `SetModelIdToAuto`

## SetInstructions

[Line 193](https://jonas-paprotka.de/ref/codeunit/4321-agent/source/#L193).

- [197](https://jonas-paprotka.de/ref/codeunit/4321-agent/source/#L197) calls [Codeunit 2000000020 Feature Access Management](https://jonas-paprotka.de/ref/codeunit/2000000020-feature-access-management/) `AgentManagementAllowed`
- [198](https://jonas-paprotka.de/ref/codeunit/4321-agent/source/#L198) calls [Codeunit 2000000022 Agent Utilities](https://jonas-paprotka.de/ref/codeunit/2000000022-agent-utilities/) `SetInstructions`

## IsActive

[Line 206](https://jonas-paprotka.de/ref/codeunit/4321-agent/source/#L206).

- [210](https://jonas-paprotka.de/ref/codeunit/4321-agent/source/#L210) calls [Codeunit 2000000020 Feature Access Management](https://jonas-paprotka.de/ref/codeunit/2000000020-feature-access-management/) `AgentManagementAllowed`
- [211](https://jonas-paprotka.de/ref/codeunit/4321-agent/source/#L211) calls [Codeunit 4301 Agent Impl.](https://jonas-paprotka.de/ref/codeunit/4301-agent-impl/) `IsActive`

## PopulateDefaultProfile

[Line 220](https://jonas-paprotka.de/ref/codeunit/4321-agent/source/#L220).

- [224](https://jonas-paprotka.de/ref/codeunit/4321-agent/source/#L224) calls [Codeunit 2000000020 Feature Access Management](https://jonas-paprotka.de/ref/codeunit/2000000020-feature-access-management/) `AgentManagementAllowed`
- [225](https://jonas-paprotka.de/ref/codeunit/4321-agent/source/#L225) calls [Codeunit 4301 Agent Impl.](https://jonas-paprotka.de/ref/codeunit/4301-agent-impl/) `PopulateProfileTempRecord`

## SetProfile

[Line 235](https://jonas-paprotka.de/ref/codeunit/4321-agent/source/#L235).

- [239](https://jonas-paprotka.de/ref/codeunit/4321-agent/source/#L239) calls [Codeunit 2000000020 Feature Access Management](https://jonas-paprotka.de/ref/codeunit/2000000020-feature-access-management/) `AgentManagementAllowed`
- [240](https://jonas-paprotka.de/ref/codeunit/4321-agent/source/#L240) calls [Codeunit 4301 Agent Impl.](https://jonas-paprotka.de/ref/codeunit/4301-agent-impl/) `SetProfile`

## UpdateLocalizationSettings

[Line 250](https://jonas-paprotka.de/ref/codeunit/4321-agent/source/#L250).

- [254](https://jonas-paprotka.de/ref/codeunit/4321-agent/source/#L254) calls [Codeunit 2000000020 Feature Access Management](https://jonas-paprotka.de/ref/codeunit/2000000020-feature-access-management/) `AgentManagementAllowed`
- [255](https://jonas-paprotka.de/ref/codeunit/4321-agent/source/#L255) calls [Codeunit 4301 Agent Impl.](https://jonas-paprotka.de/ref/codeunit/4301-agent-impl/) `UpdateLocalizationSettings`

## GetUserSettings

[Line 263](https://jonas-paprotka.de/ref/codeunit/4321-agent/source/#L263).

- [267](https://jonas-paprotka.de/ref/codeunit/4321-agent/source/#L267) calls [Codeunit 2000000020 Feature Access Management](https://jonas-paprotka.de/ref/codeunit/2000000020-feature-access-management/) `AgentManagementAllowed`
- [268](https://jonas-paprotka.de/ref/codeunit/4321-agent/source/#L268) calls [Codeunit 4301 Agent Impl.](https://jonas-paprotka.de/ref/codeunit/4301-agent-impl/) `GetUserSettings`

## UpdateAccessControl

[Line 277](https://jonas-paprotka.de/ref/codeunit/4321-agent/source/#L277).

- [281](https://jonas-paprotka.de/ref/codeunit/4321-agent/source/#L281) calls [Codeunit 2000000020 Feature Access Management](https://jonas-paprotka.de/ref/codeunit/2000000020-feature-access-management/) `AgentManagementAllowed`
- [282](https://jonas-paprotka.de/ref/codeunit/4321-agent/source/#L282) calls [Codeunit 4301 Agent Impl.](https://jonas-paprotka.de/ref/codeunit/4301-agent-impl/) `AssignPermissionSets`

## GetAccessControl

[Line 290](https://jonas-paprotka.de/ref/codeunit/4321-agent/source/#L290).

- [294](https://jonas-paprotka.de/ref/codeunit/4321-agent/source/#L294) calls [Codeunit 2000000020 Feature Access Management](https://jonas-paprotka.de/ref/codeunit/2000000020-feature-access-management/) `AgentManagementAllowed`
- [295](https://jonas-paprotka.de/ref/codeunit/4321-agent/source/#L295) calls [Codeunit 4301 Agent Impl.](https://jonas-paprotka.de/ref/codeunit/4301-agent-impl/) `GetPermissionSets`

## GetAgentAccessControl

[Line 303](https://jonas-paprotka.de/ref/codeunit/4321-agent/source/#L303).

- [307](https://jonas-paprotka.de/ref/codeunit/4321-agent/source/#L307) calls [Codeunit 2000000020 Feature Access Management](https://jonas-paprotka.de/ref/codeunit/2000000020-feature-access-management/) `AgentManagementAllowed`
- [308](https://jonas-paprotka.de/ref/codeunit/4321-agent/source/#L308) calls [Codeunit 4301 Agent Impl.](https://jonas-paprotka.de/ref/codeunit/4301-agent-impl/) `GetUserAccess`

## UpdateAgentAccessControl

[Line 316](https://jonas-paprotka.de/ref/codeunit/4321-agent/source/#L316).

- [320](https://jonas-paprotka.de/ref/codeunit/4321-agent/source/#L320) calls [Codeunit 2000000020 Feature Access Management](https://jonas-paprotka.de/ref/codeunit/2000000020-feature-access-management/) `AgentManagementAllowed`
- [321](https://jonas-paprotka.de/ref/codeunit/4321-agent/source/#L321) calls [Codeunit 4301 Agent Impl.](https://jonas-paprotka.de/ref/codeunit/4301-agent-impl/) `UpdateAgentAccessControl`

## SetProfile

[Line 332](https://jonas-paprotka.de/ref/codeunit/4321-agent/source/#L332).

- [336](https://jonas-paprotka.de/ref/codeunit/4321-agent/source/#L336) calls [Codeunit 4301 Agent Impl.](https://jonas-paprotka.de/ref/codeunit/4301-agent-impl/) `SetProfile`

## ProfileLookup

[Line 344](https://jonas-paprotka.de/ref/codeunit/4321-agent/source/#L344).

- [348](https://jonas-paprotka.de/ref/codeunit/4321-agent/source/#L348) calls [Codeunit 4301 Agent Impl.](https://jonas-paprotka.de/ref/codeunit/4301-agent-impl/) `ProfileLookup`

## UpdateLocalizationSettings

[Line 357](https://jonas-paprotka.de/ref/codeunit/4321-agent/source/#L357).

- [361](https://jonas-paprotka.de/ref/codeunit/4321-agent/source/#L361) calls [Codeunit 4301 Agent Impl.](https://jonas-paprotka.de/ref/codeunit/4301-agent-impl/) `UpdateLocalizationSettings`

## GetUserAccess

[Line 370](https://jonas-paprotka.de/ref/codeunit/4321-agent/source/#L370).

- [374](https://jonas-paprotka.de/ref/codeunit/4321-agent/source/#L374) calls [Codeunit 4301 Agent Impl.](https://jonas-paprotka.de/ref/codeunit/4301-agent-impl/) `GetUserAccess`

## AssignPermissionSet

[Line 383](https://jonas-paprotka.de/ref/codeunit/4321-agent/source/#L383).

- [387](https://jonas-paprotka.de/ref/codeunit/4321-agent/source/#L387) calls [Codeunit 4301 Agent Impl.](https://jonas-paprotka.de/ref/codeunit/4301-agent-impl/) `AssignPermissionSets`

## UpdateAccess

[Line 396](https://jonas-paprotka.de/ref/codeunit/4321-agent/source/#L396).

- [400](https://jonas-paprotka.de/ref/codeunit/4321-agent/source/#L400) calls [Codeunit 4301 Agent Impl.](https://jonas-paprotka.de/ref/codeunit/4301-agent-impl/) `UpdateAgentAccessControl`

## OpenSetupPageId

[Line 409](https://jonas-paprotka.de/ref/codeunit/4321-agent/source/#L409).

- [413](https://jonas-paprotka.de/ref/codeunit/4321-agent/source/#L413) calls [Codeunit 4301 Agent Impl.](https://jonas-paprotka.de/ref/codeunit/4301-agent-impl/) `OpenSetupPageId`

## Source

AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at 4303e5e584d3aa5d9e98cbc615525a5396ad6ed7.

JOP-AL, 2026-11-20.
