Codeunit 1543 Workflow Webhook Management

Base Application, System.Automation

Source AL, 494 lines

src/Layers/W1/BaseApp/System/Workflow/WorkflowWebhookManagement.Codeunit.allines 15 to 30 of 494, Copyright (c) Microsoft Corporation. MIT

codeunit 1543 "Workflow Webhook Management"{    Permissions = TableData "Workflow Webhook Entry" = rimd;    trigger OnRun()    begin    end;    var        ResponseAlreadyReceivedErr: Label 'A response has already been received.';        ResponseNotExpectedErr: Label 'A response is not expected.';#pragma warning disable AA0470        UnsupportedRecordTypeErr: Label 'Record type %1 is not supported.', Comment = 'Record type Customer is not supported by this workflow response.';#pragma warning restore AA0470        UserUnableToCancelErr: Label 'User %1 does not have the permission necessary to cancel the item.', Comment = '%1 = a NAV user ID, for example "MEGANB"';        EmailNotAssociatedWithUserErr: Label 'Email %1 is not associated with any user.', Comment = '%1 = an email, for example "test@microsoft.com"';

All 494 lines

Events 4 in 29

[IntegrationEvent] OnContinueWorkflow(WorkflowWebhookEntry: Record "Workflow Webhook Entry")17-29
[IntegrationEvent] OnRejectWorkflow(WorkflowWebhookEntry: Record "Workflow Webhook Entry")17-29
[IntegrationEvent] OnFindTaskSchedulerAllowed(var IsTaskSchedulingAllowed: Boolean)17-29
[IntegrationEvent] OnCancelWorkflow(WorkflowWebhookEntry: Record "Workflow Webhook Entry"; OnDeletion: Boolean)new in 19

All 5 events in 17-29

Public procedures 22 in 29

CanCancel(WorkflowWebhookEntry: Record "Workflow Webhook Entry"): Boolean17-29
CanRequestApproval(RecordId: RecordId): Boolean17-29
GetCanRequestAndCanCancel(RecordId: RecordId; var CanRequestApprovalForFlow: Boolean; var CanCancelApprovalForFlow: Boolean)17-29
GetCanRequestAndCanCancelJournalBatch(GenJournalBatch: Record "Gen. Journal Batch"; var CanRequestBatchApproval: Boolean; var CanCancelBatchApproval: Boolean; var CanRequestLineApprovals: Boolean)17-29
Cancel(var WorkflowWebhookEntry: Record "Workflow Webhook Entry")17-29
CancelByStepInstanceId(Id: Guid)17-29

All 22 procedures

Changes 1 in 23

List17181920212223242526272829
Procedures31
Events2
GetDirectApproverForRequestor(RequestorEmailAddress: Text): Textnew in 23
added

All 6 changes in 17-29