---
title: "Codeunit 2000000018 Agent Task Internal"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/2000000018-agent-task-internal/
type: codeunit
id: 2000000018
name: "Agent Task Internal"
app: "System"
namespace: System.Agents
versions: "27-29"
build: 29.0.55597.0
countries: "W1"
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 2000000018 Agent Task Internal

JOP-AL, https://jonas-paprotka.de/ref/codeunit/2000000018-agent-task-internal/

| | |
| --- | --- |
| App | System |
| Namespace | System.Agents |
| Versions | 27-29 |
| Minors | W1 27.0, 28.0, 29.0, [every minor](https://jonas-paprotka.de/ref/codeunit/2000000018-agent-task-internal/editions.json) |
| Access | Internal |
| Source file | System Codeunits/Agents/AgentTaskInternal.Codeunit.al |

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| GetDefaultEncoding | () | TextEncoding | public | 27-29 | - | - |
| StopTask | (var AgentTask: Record "Agent Task"; AgentTaskStatus: Enum "Agent Task Status"; UserConfirm: Boolean) | - | public | 27-29 | - | - |
| StopAllNeedsAttentionTasks | (AgentId: Guid; AgentTaskStatus: Enum "Agent Task Status"; UserConfirm: Boolean) | - | public | 27-29 | - | - |
| CanShowTask | (TaskId: BigInteger) | Boolean | public | 28-29 | - | - |
| CanReviewTask | (TaskId: BigInteger; Indicator: Enum "Agent Task Status"; CurrentPageExists: Boolean; CurrentPageQuery: BigText) | Boolean | public | 28-29 | - | - |
| CanStopTask | (TaskId: BigInteger; Indicator: Enum "Agent Task Status"; NeedsAttention: Boolean) | Boolean | public | 28-29 | - | - |
| FormatTimelineStepSummary | (SummaryJson: Text; StepType: Enum "Agent Task Timeline Step Type") | Text | public | 28-29 | - | - |
| GetTimelineStepSummaryPageType | (SummaryJson: Text; StepType: Enum "Agent Task Timeline Step Type") | Text | public | 28-29 | - | - |
| OpenPermissionSetCardForSuggestion | (TaskTimelineStep: Record "Agent Task Timeline Step"; SelectedSuggestionId: Integer) | - | public | 29 | - | - |

## Source

Symbols: Microsoft.Platform.symbols, https://dynamicssmb2.pkgs.visualstudio.com/DynamicsBCPublicFeeds/_packaging/MSSymbols/nuget/v3/index.json, highest build per major on 2026-11-20.

JOP-AL, 2026-11-20.
