Codeunit "Workflow Webhook Management"

ID 1543
Namespace: System.Automation

Properties

Name Value
Permissions TableData "Workflow Webhook Entry" = rimd

Methods

CanCancel

procedure CanCancel(WorkflowWebhookEntry: Record "Workflow Webhook Entry"): Boolean

Parameters

Name Type Description
WorkflowWebhookEntry Table System.Automation."Workflow Webhook Entry"

Returns

Type Description
Boolean

CanRequestApproval

procedure CanRequestApproval(RecordId: RecordId): Boolean

Parameters

Name Type Description
RecordId RecordId

Returns

Type Description
Boolean

GetCanRequestAndCanCancel

procedure GetCanRequestAndCanCancel(RecordId: RecordId, var CanRequestApprovalForFlow: Boolean, var CanCancelApprovalForFlow: Boolean)

Parameters

Name Type Description
RecordId RecordId
CanRequestApprovalForFlow Boolean
CanCancelApprovalForFlow Boolean

GetCanRequestAndCanCancelJournalBatch

procedure GetCanRequestAndCanCancelJournalBatch(GenJournalBatch: Record "Gen. Journal Batch", var CanRequestBatchApproval: Boolean, var CanCancelBatchApproval: Boolean, var CanRequestLineApprovals: Boolean)

Parameters

Name Type Description
GenJournalBatch Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Batch"
CanRequestBatchApproval Boolean
CanCancelBatchApproval Boolean
CanRequestLineApprovals Boolean

Cancel

procedure Cancel(var WorkflowWebhookEntry: Record "Workflow Webhook Entry")

Parameters

Name Type Description
WorkflowWebhookEntry Table System.Automation."Workflow Webhook Entry"

Cancel

procedure Cancel(var WorkflowWebhookEntry: Record "Workflow Webhook Entry", OnDeletion: Boolean)

Parameters

Name Type Description
WorkflowWebhookEntry Table System.Automation."Workflow Webhook Entry"
OnDeletion Boolean

CancelByStepInstanceId

procedure CancelByStepInstanceId(Id: Guid)

Parameters

Name Type Description
Id Guid

CanContinue

procedure CanContinue(WorkflowWebhookEntry: Record "Workflow Webhook Entry"): Boolean

Parameters

Name Type Description
WorkflowWebhookEntry Table System.Automation."Workflow Webhook Entry"

Returns

Type Description
Boolean

CanReject

procedure CanReject(WorkflowWebhookEntry: Record "Workflow Webhook Entry"): Boolean

Parameters

Name Type Description
WorkflowWebhookEntry Table System.Automation."Workflow Webhook Entry"

Returns

Type Description
Boolean

Continue

procedure Continue(var WorkflowWebhookEntry: Record "Workflow Webhook Entry")

Parameters

Name Type Description
WorkflowWebhookEntry Table System.Automation."Workflow Webhook Entry"

ContinueByStepInstanceId

procedure ContinueByStepInstanceId(Id: Guid)

Parameters

Name Type Description
Id Guid

GenerateRequest

procedure GenerateRequest(RecRef: RecordRef, WorkflowStepInstance: Record "Workflow Step Instance")

Parameters

Name Type Description
RecRef RecordRef
WorkflowStepInstance Table System.Automation."Workflow Step Instance"

Reject

procedure Reject(var WorkflowWebhookEntry: Record "Workflow Webhook Entry")

Parameters

Name Type Description
WorkflowWebhookEntry Table System.Automation."Workflow Webhook Entry"

RejectByStepInstanceId

procedure RejectByStepInstanceId(Id: Guid)

Parameters

Name Type Description
Id Guid

SendWebhookNotificaton

procedure SendWebhookNotificaton(WorkflowStepInstance: Record "Workflow Step Instance")

Parameters

Name Type Description
WorkflowStepInstance Table System.Automation."Workflow Step Instance"

FindWorkflowWebhookEntryByRecordIdAndResponse

procedure FindWorkflowWebhookEntryByRecordIdAndResponse(var WorkflowWebhookEntry: Record "Workflow Webhook Entry", RecordId: RecordId, ResponseStatus: Option): Boolean

Parameters

Name Type Description
WorkflowWebhookEntry Table System.Automation."Workflow Webhook Entry"
RecordId RecordId
ResponseStatus Option

Returns

Type Description
Boolean

HasPendingWorkflowWebhookEntryByRecordId

procedure HasPendingWorkflowWebhookEntryByRecordId(RecordId: RecordId): Boolean

Parameters

Name Type Description
RecordId RecordId

Returns

Type Description
Boolean

GetDirectApproverForRequestor

procedure GetDirectApproverForRequestor(RequestorEmailAddress: Text): Text

Parameters

Name Type Description
RequestorEmailAddress Text

Returns

Type Description
Text

FindAndCancel

procedure FindAndCancel(RecordId: RecordId)

Parameters

Name Type Description
RecordId RecordId

FindAndCancel

procedure FindAndCancel(RecordId: RecordId, OnDeletion: Boolean)

Parameters

Name Type Description
RecordId RecordId
OnDeletion Boolean

DeleteWorkflowWebhookEntries

procedure DeleteWorkflowWebhookEntries(RecordId: RecordId)

Parameters

Name Type Description
RecordId RecordId

RenameRecord

procedure RenameRecord(OldRecordId: RecordId, NewRecordId: RecordId)

Parameters

Name Type Description
OldRecordId RecordId
NewRecordId RecordId

Events

OnCancelWorkflow

[IntegrationEvent(False,False)]
local procedure OnCancelWorkflow(WorkflowWebhookEntry: Record "Workflow Webhook Entry", OnDeletion: Boolean)

Parameters

Name Type Description
WorkflowWebhookEntry Table System.Automation."Workflow Webhook Entry"
OnDeletion Boolean

OnContinueWorkflow

[IntegrationEvent(False,False)]
local procedure OnContinueWorkflow(WorkflowWebhookEntry: Record "Workflow Webhook Entry")

Parameters

Name Type Description
WorkflowWebhookEntry Table System.Automation."Workflow Webhook Entry"

OnRejectWorkflow

[IntegrationEvent(False,False)]
local procedure OnRejectWorkflow(WorkflowWebhookEntry: Record "Workflow Webhook Entry")

Parameters

Name Type Description
WorkflowWebhookEntry Table System.Automation."Workflow Webhook Entry"

OnFindTaskSchedulerAllowed

[IntegrationEvent(False,False)]
local procedure OnFindTaskSchedulerAllowed(var IsTaskSchedulingAllowed: Boolean)

Parameters

Name Type Description
IsTaskSchedulingAllowed Boolean

See also