-
Notifications
You must be signed in to change notification settings - Fork 0
/
Pag50100.w365approvalEntries.al
45 lines (39 loc) · 1.03 KB
/
Pag50100.w365approvalEntries.al
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
page 50100 "w365-approvalEntries"
{
APIGroup = 'w365apiActions';
APIPublisher = 'wingate365';
APIVersion = 'v1.0';
ApplicationArea = All;
Caption = 'w365ApprovalEntries';
DelayedInsert = true;
EntityName = 'approvalEntry';
EntitySetName = 'approvalEntryDelegation';
PageType = API;
SourceTable = "Approval Entry";
ODataKeyFields = SystemId;
layout
{
area(Content)
{
field("EntryNo"; Rec."Entry No.")
{ }
field(SystemId; Rec.SystemId)
{ }
}
}
[ServiceEnabled]
[Scope('Cloud')]
procedure delegate(var ActionContext: WebServiceActionContext)
var
ApprovalEntry: Record "Approval Entry";
begin
delegate(Rec);
end;
local procedure delegate(var ApprovalEntry: Record "Approval Entry")
var
ApprovalsMgmt: Codeunit "Approvals Mgmt.";
begin
//CurrPage.SetSelectionFilter(ApprovalEntry);
ApprovalsMgmt.DelegateApprovalRequests(ApprovalEntry);
end;
}