Page 4316 Agent List, source in 25
Source2526272829metadata in 25
src/System Application/App/Agent/Setup/AgentList.Page.al93 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;
page 4316 "Agent List"
{
PageType = List;
ApplicationArea = All;
UsageCategory = Administration;
SourceTable = "Agent";
Caption = 'Agents';
CardPageId = "Agent Card";
AdditionalSearchTerms = 'Agent, Agents, Copilot, Automation, AI';
Editable = false;
InsertAllowed = false;
DeleteAllowed = false;
InherentEntitlements = X;
InherentPermissions = X;
layout
{
area(Content)
{
repeater(Main)
{
field(UserName; Rec."User Name")
{
Caption = 'User Name';
}
field(DisplayName; Rec."Display Name")
{
Caption = 'Display Name';
}
field(State; Rec.State)
{
Caption = 'State';
}
}
}
}
actions
{
area(Processing)
{
action(AgentSetup)
{
ApplicationArea = Basic, Suite;
Caption = 'Setup';
ToolTip = 'Set up the agent';
Image = SetupLines;
trigger OnAction()
var
TempAgent: Record Agent temporary;
begin
TempAgent.Copy(Rec);
TempAgent.Insert();
Page.RunModal(Rec."Setup Page ID", TempAgent);
end;
}
action(AgentTasks)
{
ApplicationArea = All;
Caption = 'Agent Tasks';
ToolTip = 'View agent tasks';
Image = Log;
trigger OnAction()
var
AgentTask: Record "Agent Task";
begin
AgentTask.SetRange("Agent User Security ID", Rec."User Security ID");
Page.Run(Page::"Agent Task List", AgentTask);
end;
}
}
area(Promoted)
{
group(Category_Process)
{
actionref(AgentSetup_Promoted; AgentSetup)
{
}
actionref(AgentTasks_Promoted; AgentTasks)
{
}
}
}
}
}