-
Notifications
You must be signed in to change notification settings - Fork 369
Expand file tree
/
Copy pathAgentImpl.Codeunit.al
More file actions
560 lines (478 loc) · 22.4 KB
/
AgentImpl.Codeunit.al
File metadata and controls
560 lines (478 loc) · 22.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
// ------------------------------------------------------------------------------------------------
// 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.AI;
using System.Environment;
using System.Environment.Configuration;
using System.Environment.Consumption;
using System.Reflection;
using System.Security.AccessControl;
codeunit 4301 "Agent Impl."
{
Access = Internal;
InherentEntitlements = X;
InherentPermissions = X;
Permissions = tabledata Agent = rim,
tabledata "All Profile" = r,
tabledata Company = r,
tabledata "Copilot Settings" = r,
tabledata "Agent Access Control" = d,
tabledata "Application User Settings" = rim,
tabledata User = r,
tabledata "User Personalization" = rim;
procedure CreateAgent(AgentMetadataProvider: Enum "Agent Metadata Provider"; var UserName: Code[50]; AgentUserDisplayName: Text[80]; var TempAgentAccessControl: Record "Agent Access Control" temporary): Guid
var
Agent: Record Agent;
begin
Agent."Agent Metadata Provider" := AgentMetadataProvider;
Agent."User Name" := GenerateUniqueUserName(UserName);
UserName := Agent."User Name";
Agent."Display Name" := AgentUserDisplayName;
Agent.Insert(true);
if TempAgentAccessControl.IsEmpty() then
// If no access control is provided, the server is giving access to the user creating the agent.
GetUserAccess(Agent, TempAgentAccessControl);
AssignCompany(Agent."User Security ID", CompanyName());
AssignDefaultProfile(Agent."User Security ID");
UpdateAgentAccessControl(TempAgentAccessControl, Agent);
exit(Agent."User Security ID");
end;
procedure Activate(AgentUserSecurityID: Guid)
begin
ChangeAgentState(AgentUserSecurityID, true);
end;
procedure Deactivate(AgentUserSecurityID: Guid)
begin
ChangeAgentState(AgentUserSecurityID, false);
end;
procedure GetUserAccess(AgentUserSecurityID: Guid; var TempAgentAccessControl: Record "Agent Access Control" temporary)
var
Agent: Record Agent;
begin
GetAgent(Agent, AgentUserSecurityID);
GetUserAccess(Agent, TempAgentAccessControl);
end;
local procedure GetUserAccess(var Agent: Record Agent; var TempAgentAccessControl: Record "Agent Access Control" temporary)
var
AgentAccessControl: Record "Agent Access Control";
begin
TempAgentAccessControl.Reset();
TempAgentAccessControl.DeleteAll();
AgentAccessControl.SetRange("Agent User Security ID", Agent."User Security ID");
if AgentAccessControl.IsEmpty() then
exit;
AgentAccessControl.FindSet();
repeat
TempAgentAccessControl.Copy(AgentAccessControl);
TempAgentAccessControl.Insert();
until AgentAccessControl.Next() = 0;
end;
procedure PopulateProfileTempRecord(ProfileID: Text[30]; ProfileAppID: Guid; var TempAllProfile: Record "All Profile" temporary)
begin
TempAllProfile.Scope := TempAllProfile.Scope::Tenant;
TempAllProfile."App ID" := ProfileAppID;
TempAllProfile."Profile ID" := ProfileID;
TempAllProfile.Insert();
end;
local procedure AssignDefaultProfile(AgentUserSecurityID: Guid)
var
Agent: Record Agent;
TempAllProfile: Record "All Profile" temporary;
AgentFactory: Interface IAgentFactory;
begin
GetAgent(Agent, AgentUserSecurityID);
AgentFactory := Agent."Agent Metadata Provider";
AgentFactory.GetDefaultProfile(TempAllProfile);
SetProfile(Agent, TempAllProfile);
end;
procedure SetProfile(AgentUserSecurityID: Guid; var AllProfile: Record "All Profile")
var
Agent: Record Agent;
begin
GetAgent(Agent, AgentUserSecurityID);
SetProfile(Agent, AllProfile);
end;
procedure SetProfile(AgentUserSecurityID: Guid; ProfileID: Text; ProfileAppID: Guid)
var
Agent: Record Agent;
TempAllProfile: Record "All Profile" temporary;
begin
GetAgent(Agent, AgentUserSecurityID);
PopulateProfileTempRecord(CopyStr(ProfileID, 1, 30), ProfileAppID, TempAllProfile);
SetProfile(Agent, TempAllProfile);
end;
local procedure SetProfile(Agent: Record Agent; var AllProfile: Record "All Profile")
var
TempUserSettingsRecord: Record "User Settings" temporary;
UserSettings: Codeunit "User Settings";
begin
UserSettings.GetUserSettings(Agent."User Security ID", TempUserSettingsRecord);
UpdateUserSettingsWithProfile(AllProfile, TempUserSettingsRecord);
UpdateAgentUserSettings(TempUserSettingsRecord);
end;
procedure UpdateLocalizationSettings(AgentUserSecurityID: Guid; LanguageID: Integer; LocaleID: Integer; TimeZone: Text[180])
var
TempNewUserSettingsRec: Record "User Settings" temporary;
begin
TempNewUserSettingsRec."Language ID" := LanguageID;
TempNewUserSettingsRec."Locale ID" := LocaleID;
TempNewUserSettingsRec."Time Zone" := TimeZone;
this.UpdateLocalizationSettings(AgentUserSecurityID, TempNewUserSettingsRec);
end;
procedure UpdateLocalizationSettings(AgentUserSecurityID: Guid; var NewUserSettingsRec: Record "User Settings")
var
Agent: Record Agent;
TempUserSettingsRecord: Record "User Settings" temporary;
UserSettings: Codeunit "User Settings";
begin
GetAgent(Agent, AgentUserSecurityID);
UserSettings.GetUserSettings(Agent."User Security ID", TempUserSettingsRecord);
TempUserSettingsRecord."Language ID" := NewUserSettingsRec."Language ID";
TempUserSettingsRecord."Locale ID" := NewUserSettingsRec."Locale ID";
TempUserSettingsRecord."Time Zone" := NewUserSettingsRec."Time Zone";
UpdateAgentUserSettings(TempUserSettingsRecord);
end;
procedure GetUserSettings(AgentUserSecurityID: Guid; var UserSettingsRec: Record "User Settings")
var
Agent: Record Agent;
UserSettings: Codeunit "User Settings";
UserSecurityID: Guid;
begin
UserSecurityID := UserSecurityId();
if not IsNullGuid(AgentUserSecurityID) then
if Agent.Get(AgentUserSecurityID) then
UserSecurityID := Agent."User Security ID";
UserSettings.GetUserSettings(UserSecurityID, UserSettingsRec);
end;
local procedure AssignCompany(AgentUserSecurityID: Guid; CompanyName: Text)
var
Agent: Record Agent;
TempUserSettingsRecord: Record "User Settings" temporary;
UserSettings: Codeunit "User Settings";
begin
GetAgent(Agent, AgentUserSecurityID);
UserSettings.GetUserSettings(Agent."User Security ID", TempUserSettingsRecord);
#pragma warning disable AA0139
TempUserSettingsRecord.Company := CompanyName;
#pragma warning restore AA0139
UpdateAgentUserSettings(TempUserSettingsRecord);
end;
procedure GetUserName(AgentUserSecurityID: Guid): Code[50]
var
Agent: Record Agent;
begin
GetAgent(Agent, AgentUserSecurityID);
exit(Agent."User Name");
end;
procedure GetDisplayName(AgentUserSecurityID: Guid): Text[80]
var
Agent: Record Agent;
begin
GetAgent(Agent, AgentUserSecurityID);
exit(Agent."Display Name")
end;
procedure SetDisplayName(AgentUserSecurityID: Guid; DisplayName: Text[80])
var
Agent: Record Agent;
begin
GetAgent(Agent, AgentUserSecurityID);
Agent."Display Name" := DisplayName;
Agent.Modify(true);
end;
procedure IsActive(AgentUserSecurityID: Guid): Boolean
var
Agent: Record Agent;
begin
GetAgent(Agent, AgentUserSecurityID);
exit(Agent.State = Agent.State::Enabled);
end;
procedure UpdateAgentAccessControl(AgentUserSecurityID: Guid; var TempAgentAccessControl: Record "Agent Access Control" temporary)
var
Agent: Record Agent;
begin
if not Agent.Get(AgentUserSecurityID) then
Error(AgentDoesNotExistErr);
UpdateAgentAccessControl(TempAgentAccessControl, Agent);
end;
# Region TODO: Update System App signatures to use the codeunit 9175 "User Settings Impl."
procedure UpdateAgentUserSettings(NewUserSettings: Record "User Settings")
var
UserPersonalization: Record "User Personalization";
begin
UserPersonalization.Get(NewUserSettings."User Security ID");
UserPersonalization."Language ID" := NewUserSettings."Language ID";
UserPersonalization."Locale ID" := NewUserSettings."Locale ID";
UserPersonalization.Company := NewUserSettings.Company;
UserPersonalization."Time Zone" := NewUserSettings."Time Zone";
UserPersonalization."Profile ID" := NewUserSettings."Profile ID";
#pragma warning disable AL0432 // All profiles are now in the tenant scope
UserPersonalization.Scope := NewUserSettings.Scope;
#pragma warning restore AL0432
UserPersonalization."App ID" := NewUserSettings."App ID";
UserPersonalization.Modify();
end;
procedure ProfileLookup(var UserSettingsRec: Record "User Settings"): Boolean
var
TempAllProfile: Record "All Profile" temporary;
begin
PopulateProfiles(TempAllProfile);
if TempAllProfile.Get(UserSettingsRec.Scope, UserSettingsRec."App ID", UserSettingsRec."Profile ID") then;
if Page.RunModal(Page::Roles, TempAllProfile) = Action::LookupOK then begin
UpdateUserSettingsWithProfile(TempAllProfile, UserSettingsRec);
exit(true);
end;
exit(false);
end;
procedure CanShowMonetizationData(): Boolean
var
DummyUserAIConsumptionData: Record "User AI Consumption Data";
begin
exit(DummyUserAIConsumptionData.ReadPermission());
end;
local procedure UpdateUserSettingsWithProfile(var TempAllProfile: Record "All Profile" temporary; var UserSettingsRec: Record "User Settings")
begin
UserSettingsRec."Profile ID" := TempAllProfile."Profile ID";
UserSettingsRec."App ID" := TempAllProfile."App ID";
UserSettingsRec.Scope := TempAllProfile.Scope;
end;
local procedure PopulateProfiles(var TempAllProfile: Record "All Profile" temporary)
var
AllProfile: Record "All Profile";
DescriptionFilterTxt: Label 'Navigation menu only.';
UserCreatedAppNameTxt: Label '(User-created)';
begin
TempAllProfile.Reset();
TempAllProfile.DeleteAll();
AllProfile.SetRange(Enabled, true);
AllProfile.SetFilter(Description, '<> %1', DescriptionFilterTxt);
if AllProfile.FindSet() then
repeat
TempAllProfile := AllProfile;
if IsNullGuid(TempAllProfile."App ID") then
TempAllProfile."App Name" := UserCreatedAppNameTxt;
TempAllProfile.Insert();
until AllProfile.Next() = 0;
end;
#endregion
procedure AssignPermissionSets(var UserSecurityID: Guid; var TempAccessControlBuffer: Record "Access Control Buffer" temporary)
var
AgentUtilities: Codeunit "Agent Utilities";
begin
// Calling system codeunit to allow the assignment of permissions to Agents without SUPER or SECURITY.
// This method ensure that the user has Configure permission for the specified agent in all the companies
// for which permissions are modified (both removed and added).
AgentUtilities.UpdateAccessControl(UserSecurityID, TempAccessControlBuffer);
end;
procedure GetPermissionSets(AgentUserSecurityID: Guid; var TempAccessControlBuffer: Record "Access Control Buffer" temporary)
var
AccessControl: Record "Access Control";
begin
TempAccessControlBuffer.Reset();
TempAccessControlBuffer.DeleteAll();
AccessControl.SetRange("User Security ID", AgentUserSecurityID);
if AccessControl.FindSet() then
repeat
TempAccessControlBuffer.Copy(AccessControl);
TempAccessControlBuffer.Insert();
until AccessControl.Next() = 0;
end;
procedure GetAgent(var Agent: Record Agent; UserSecurityID: Guid)
begin
if not Agent.Get(UserSecurityID) then
Error(AgentDoesNotExistErr);
end;
local procedure ChangeAgentState(UserSecurityID: Guid; Enabled: Boolean)
var
Agent: Record Agent;
begin
GetAgent(Agent, UserSecurityId);
if Enabled then begin
if Agent.State = Agent.State::Enabled then
exit;
Agent.State := Agent.State::Enabled
end else begin
if Agent.State = Agent.State::Disabled then
exit;
Agent.State := Agent.State::Disabled;
end;
Agent.Modify();
end;
local procedure UpdateAgentAccessControl(var TempAgentAccessControl: Record "Agent Access Control" temporary; var Agent: Record Agent)
begin
// We must delete or update the user doing the change the last to avoid removing permissions that are needed to commit the change
UpdateAgentAccessControlForUsers(TempAgentAccessControl, Agent, '<>%1', UserSecurityId());
// Update the user at the end
UpdateAgentAccessControlForUsers(TempAgentAccessControl, Agent, '%1', UserSecurityId());
end;
local procedure UpdateAgentAccessControlForUsers(var TempAgentAccessControl: Record "Agent Access Control" temporary; var Agent: Record Agent; UserSecurityIdFilter: Text; UserSecurityIdValue: Guid)
var
AgentAccessControl: Record "Agent Access Control";
begin
// Delete any existing records that match the filter and are not in the temp table
AgentAccessControl.SetRange("Agent User Security ID", Agent."User Security ID");
AgentAccessControl.SetFilter("User Security ID", UserSecurityIdFilter, UserSecurityIdValue);
if AgentAccessControl.FindSet() then
repeat
if not TempAgentAccessControl.Get(AgentAccessControl."Agent User Security ID", AgentAccessControl."User Security ID", AgentAccessControl."Company Name") then
AgentAccessControl.Delete(true);
until AgentAccessControl.Next() = 0;
// Insert or update all records from temp table that match the filter
AgentAccessControl.Reset();
TempAgentAccessControl.Reset();
TempAgentAccessControl.SetFilter("User Security ID", UserSecurityIdFilter, UserSecurityIdValue);
if not TempAgentAccessControl.FindSet() then
exit;
repeat
if AgentAccessControl.Get(Agent."User Security ID", TempAgentAccessControl."User Security ID", TempAgentAccessControl."Company Name") then begin
AgentAccessControl."Can Configure Agent" := TempAgentAccessControl."Can Configure Agent";
AgentAccessControl.Modify();
end else begin
Clear(AgentAccessControl);
AgentAccessControl."Agent User Security ID" := Agent."User Security ID";
AgentAccessControl."User Security ID" := TempAgentAccessControl."User Security ID";
AgentAccessControl."Company Name" := TempAgentAccessControl."Company Name";
AgentAccessControl."Can Configure Agent" := TempAgentAccessControl."Can Configure Agent";
AgentAccessControl.Insert();
end;
until TempAgentAccessControl.Next() = 0;
end;
procedure SelectAgent(var Agent: Record "Agent")
begin
SelectAgent(Agent, false);
end;
procedure SelectAgent(var Agent: Record "Agent"; AlwaysShowUI: Boolean)
begin
Agent.SetRange(State, Agent.State::Enabled);
if Agent.Count() = 0 then
Error(NoActiveAgentsErr);
if (Agent.Count() = 1) and (not AlwaysShowUI) then begin
Agent.FindFirst();
exit;
end;
if not (Page.RunModal(Page::"Agent List", Agent) in [Action::LookupOK, Action::OK]) then
Error('');
end;
procedure ShowNoAgentsAvailableNotification()
var
NoAgentsNotification: Notification;
begin
NoAgentsNotification.Id(NoAgentsAvailableNotificationGuidLbl);
NoAgentsNotification.Message(NoAgentsAvailableNotificationLbl);
NoAgentsNotification.Scope(NotificationScope::LocalScope);
NoAgentsNotification.AddAction(NoAgentsAvailableNotificationLearnMoreLbl, Codeunit::"Agent Impl.", 'OpenNoAgentsLearnMore');
if NoAgentsNotification.Recall() then;
NoAgentsNotification.Send();
end;
procedure OpenNoAgentsLearnMore(Notification: Notification)
begin
Hyperlink(NoAgentsAvailableNotificationLearnMoreUrlLbl);
end;
local procedure GenerateUniqueUserName(AgentUserName: Code[50]): Code[50]
var
User: Record User;
UniqueUserName: Text[50];
AgentNamePrefix: Text[50];
NumberOfAgentDigits: Integer;
MaximumPrefixLength: Integer;
NumberIncrement: Integer;
AgentNumberSeparatorTok: Label '-', Locked = true;
begin
// Check if the user name is already unique
User.SetRange("User Name", AgentUserName);
User.ReadIsolation := IsolationLevel::ReadUncommitted;
if User.IsEmpty() then
exit(AgentUserName);
// If not check if there is a user with digits at the end of the name
NumberOfAgentDigits := 2;
MaximumPrefixLength := MaxStrLen(User."User Name") - NumberOfAgentDigits - StrLen(AgentNumberSeparatorTok);
if StrLen(AgentUserName) < MaximumPrefixLength then
#pragma warning disable AA0139
AgentNamePrefix := AgentUserName + AgentNumberSeparatorTok
#pragma warning restore AA0139
else
AgentNamePrefix := CopyStr(AgentUserName, 1, MaximumPrefixLength) + AgentNumberSeparatorTok;
// Generate a unique user name by appending digits
User.SetFilter("User Name", '%1', AgentNamePrefix + '*');
NumberIncrement := User.Count() + 2;
#pragma warning disable AA0139
UniqueUserName := AgentNamePrefix + Format(NumberIncrement);
#pragma warning restore AA0139
User.SetRange("User Name", UniqueUserName);
while not User.IsEmpty() do begin
NumberIncrement += 1;
UniqueUserName := AgentNamePrefix + Format(NumberIncrement);
User.SetRange("User Name", UniqueUserName);
end;
exit(UniqueUserName);
end;
procedure OpenSetupPageId(AgentMetadataProvider: Enum "Agent Metadata Provider"; AgentUserSecurityID: Guid)
var
PageMetadata: Record "Page Metadata";
FieldMetadata: Record Field;
SetupPageRecordRef: RecordRef;
UserSecurityIdFieldRef: FieldRef;
AgentMetadata: Interface IAgentMetadata;
SourceRecordVariant: Variant;
SetupPageId: Integer;
UserSecurityIdTok: Label 'User Security ID', Locked = true;
begin
AgentMetadata := AgentMetadataProvider;
SetupPageId := AgentMetadata.GetSetupPageId(AgentUserSecurityID);
PageMetadata.Get(SetupPageId);
if (PageMetadata.SourceTable = 0) then
Error(SetupPageMissingSourceTableErr, SetupPageId);
SetupPageRecordRef.Open(PageMetadata.SourceTable, PageMetadata.SourceTableTemporary);
FieldMetadata.SetRange(TableNo, PageMetadata.SourceTable);
FieldMetadata.SetRange(FieldName, UserSecurityIdTok);
if not FieldMetadata.FindFirst() then
Error(SetupPageSourceTableMissingFieldErr, SetupPageId, UserSecurityIdTok);
if (FieldMetadata.Type <> FieldMetadata.Type::Guid) then
Error(SetupPageSourceTableFieldWrongTypeErr, UserSecurityIdTok, SetupPageId, FieldMetadata.Type::Guid);
UserSecurityIdFieldRef := SetupPageRecordRef.Field(FieldMetadata."No.");
UserSecurityIdFieldRef.SetFilter(AgentUserSecurityID);
SourceRecordVariant := SetupPageRecordRef;
Page.RunModal(SetupPageId, SourceRecordVariant);
end;
procedure GetAccessControlForSingleCompany(AgentUserSecurityID: Guid; var SingleCompanyName: Text[30]): Boolean
var
TempCompany: Record Company temporary;
UserSettings: Codeunit "User Settings";
begin
UserSettings.GetAllowedCompaniesForUser(AgentUserSecurityID, TempCompany);
if TempCompany.IsEmpty() then begin
#pragma warning disable AA0139
SingleCompanyName := CompanyName();
#pragma warning restore AA0139
exit(true);
end;
if TempCompany.Count() <> 1 then
exit(false);
SingleCompanyName := TempCompany.Name;
exit(true);
end;
procedure GetCopilotAvailabilityDisplayText(Agent: Record Agent) CopilotAvailabilityTxt: Text
var
CopilotSettings: Record "Copilot Settings";
IAgentFactory: Interface IAgentFactory;
CopilotCapability: Enum "Copilot Capability";
begin
IAgentFactory := Agent."Agent Metadata Provider";
CopilotCapability := IAgentFactory.GetCopilotCapability();
CopilotAvailabilityTxt := CopilotSettings.Get(CopilotCapability, Agent."App ID")
? Format(CopilotSettings.Availability)
: UnknownCopilotAvailabilityLbl;
end;
var
AgentDoesNotExistErr: Label 'Agent does not exist.';
NoActiveAgentsErr: Label 'There are no active agents setup on the system.';
NoAgentsAvailableNotificationLbl: Label 'Business Central agents are currently not available in your country.';
NoAgentsAvailableNotificationGuidLbl: Label 'bde1d653-40e6-4081-b2cf-f21b1a8622d1', Locked = true;
NoAgentsAvailableNotificationLearnMoreLbl: Label 'Learn more';
NoAgentsAvailableNotificationLearnMoreUrlLbl: Label 'https://go.microsoft.com/fwlink/?linkid=2303876', Locked = true;
SetupPageMissingSourceTableErr: Label 'Setup page with ID %1 must specify a source table.', Comment = '%1 = Setup page ID.';
SetupPageSourceTableMissingFieldErr: Label 'The source table for setup page %1 must include a field named ''%2''.', Comment = '%1 = Setup page ID, %2 = Required field name.';
SetupPageSourceTableFieldWrongTypeErr: Label 'Field ''%1'' on the source table for setup page %2 must be of type %3.', Comment = '%1 = Field name, %2 = Setup page ID, %3 = Required field type.';
UnknownCopilotAvailabilityLbl: Label 'Unknown';
}