Codeunit 4303 Agent Task

System Application, System.Agents

Source AL, 339 lines

src/System Application/App/Agent/Interaction/AgentTask.Codeunit.allines 10 to 25 of 339, Copyright (c) Microsoft Corporation. MIT

codeunit 4303 "Agent Task"{    InherentEntitlements = X;    InherentPermissions = X;    /// <summary>    /// Check if a task exists for the given agent user and conversation    /// </summary>    /// <param name="AgentUserSecurityId">The user security ID of the agent.</param>    /// <param name="ExternalId">The external ID to check.</param>    /// <returns>True if task exists, false if not.</returns>    procedure TaskExists(AgentUserSecurityId: Guid; ExternalId: Text): Boolean    var        AgentTaskImpl: Codeunit "Agent Task Impl.";    begin        FeatureAccessManagement.AgentManagementAllowed(true);

All 339 lines

Public procedures 23 in 29

TaskExists(AgentUserSecurityId: Guid; ExternalId: Text): Booleannew in 25changed in 27
CanSetStatusToReady(AgentTask: Record "Agent Task"): Booleannew in 26
GetTaskByExternalId(AgentUserSecurityId: Guid; ExternalId: Text): Record "Agent Task"new in 27
SetStatusToReady(var AgentTask: Record "Agent Task")new in 27
Pending, tag 29.0, obsolete since 29: Use the overload that takes AgentTaskID instead.
StopTask(var AgentTask: Record "Agent Task"; UserConfirm: Boolean)new in 27
Pending, tag 29.0, obsolete since 29: Use the overload that takes AgentTaskID instead.
RestartTask(var AgentTask: Record "Agent Task"; UserConfirm: Boolean)new in 27
Pending, tag 29.0, obsolete since 29: Use the overload that takes AgentTaskID instead.

All 25 procedures in 25-29

Changes 6 in 29

List17181920212223242526272829
Procedures39116
SetStatusToReady(var AgentTask: Record "Agent Task")new in 27
marked Pending, tag 29.0: Use the overload that takes AgentTaskID instead.
StopTask(var AgentTask: Record "Agent Task"; UserConfirm: Boolean)new in 27
marked Pending, tag 29.0: Use the overload that takes AgentTaskID instead.
RestartTask(var AgentTask: Record "Agent Task"; UserConfirm: Boolean)new in 27
marked Pending, tag 29.0: Use the overload that takes AgentTaskID instead.
GetStepsDoneCount(AgentTaskID: BigInteger): Integernew in 29
added
OpenAgentTaskLogEntries(AgentTaskID: BigInteger)new in 29
added
ArchiveTask(AgentTaskID: BigInteger; UserConfirm: Boolean)new in 29
added

All 29 changes in 25-29