Page 4301 Agent Task Message List
src/System Application/App/Agent/Interaction/Internal/AgentTaskMessageList.Page.al109 lines, Copyright (c) Microsoft Corporation. MIT
// ------------------------------------------------------------------------------------------------// Copyright (c) Microsoft Corporation. All rights reserved.// Licensed under the MIT License. See License.txt in the project root for license information.// ------------------------------------------------------------------------------------------------namespace System.Agents;using System.Agents.Troubleshooting;page 4301 "Agent Task Message List"{ PageType = List; ApplicationArea = All; Caption = 'Agent Task Messages'; SourceTable = "Agent Task Message"; CardPageId = "Agent Task Message Card"; InsertAllowed = false; ModifyAllowed = false; DeleteAllowed = false; Editable = false; InherentEntitlements = X; InherentPermissions = X; SourceTableView = sorting("Task Id", "Memory Entry Id") order(descending); layout { area(Content) { repeater(GroupName) { field(LastModifiedAt; Rec.SystemModifiedAt) { Caption = 'Last modified at'; ToolTip = 'Specifies the date and time when the message was last modified.'; } field(CreatedAt; Rec.SystemCreatedAt) { Caption = 'Created at'; ToolTip = 'Specifies the date and time when the message was created.'; } field(Status; Rec.Status) { Caption = 'Status'; BlankZero = true; BlankNumbers = BlankZero; } field("Created By Full Name"; Rec."Created By Full Name") { Caption = 'Created by'; } field(MessageType; Rec.Type) { Caption = 'Type'; } field(MessageText; GlobalMessageText) { Caption = 'Message'; ToolTip = 'Specifies the message text.'; trigger OnDrillDown() begin Message(GlobalMessageText); end; } field(TaskID; Rec."Task Id") { Visible = false; Caption = 'Task ID'; } field(MessageId; Rec."ID") { Caption = 'ID'; } } } area(FactBoxes) { part(TaskContext; "Agent Task Context Part") { ApplicationArea = All; Caption = 'Task context'; AboutTitle = 'Context information about the task and agent'; AboutText = 'Shows context information such as the agent name, task ID, and company name.'; SubPageLink = ID = field("Task ID"); } } } trigger OnAfterGetRecord() begin UpdateControls(); end; trigger OnAfterGetCurrRecord() begin UpdateControls(); end; local procedure UpdateControls() var AgentMessageImpl: Codeunit "Agent Message Impl."; begin GlobalMessageText := AgentMessageImpl.GetText(Rec); end; var GlobalMessageText: Text;}