Codeunit 4321 Agent

System Application, System.Agents

Source AL, 420 lines

src/System Application/App/Agent/Setup/Agent.Codeunit.allines 13 to 28 of 420, Copyright (c) Microsoft Corporation. MIT

codeunit 4321 Agent{    InherentEntitlements = X;    InherentPermissions = X;    /// <summary>    /// Creates a new agent.    /// The agent will be in the disabled state, with the users that can interact with the agent setup.    /// </summary>    /// <param name="AgentMetadataProvider">The metadata provider of the agent.</param>    /// <param name="UserName">User name for the agent.</param>    /// <param name="UserDisplayName">Display name for the agent.</param>    /// <param name="Instructions">Instructions for the agent that will be used to complete the tasks.</param>    /// <param name="TempAgentAccessControl">The list of users that can configure or interact with the agent.</param>    /// <returns>The ID of the agent.</returns>    procedure Create(AgentMetadataProvider: Enum "Agent Metadata Provider"; var UserName: Code[50]; UserDisplayName: Text[80]; var TempAgentAccessControl: Record "Agent Access Control" temporary): Guid

All 420 lines

Public procedures 29 in 29

Activate(AgentUserSecurityID: Guid)new in 25
Deactivate(AgentUserSecurityID: Guid)new in 25
GetDisplayName(AgentUserSecurityID: Guid): Text[80]new in 25
GetUserName(AgentUserSecurityID: Guid): Code[50]new in 25
SetDisplayName(AgentUserSecurityID: Guid; DisplayName: Text[80])new in 25
SetInstructions(AgentUserSecurityID: Guid; Instructions: SecretText)new in 25

All 31 procedures in 25-29

Changes 2 in 29

List17181920212223242526272829
Procedures1542
Archive(AgentUserSecurityID: Guid)new in 29
added
IsArchived(AgentUserSecurityID: Guid): Booleannew in 29
added

All 21 changes in 25-29