Events have been added in strategic places to allow you extend workflows by focusing on the business logic and less on the where and how to add the code.
Here is a list of events available to use:
| Object | Event |
|---|---|
| codeunit 72449784 “PowerFlow Management BTR” | OnBeforeRunWorkflow |
| OnBeforeCancelWorkflow | |
| OnExecuteRunWorkflowOnAfterCheckApprovalPossible | |
| codeunit 72449775 “Approval Management BTR” | OnCheckApprovalPossibleOnAfterCalcShowNothingToApproveError |
| OnAfterCheckApprovalPossible | |
| codeunit 72449776 “Record Approval Management BTR” | OnBeforeCreateApprovalStatus |
| OnBeforeUpdateApprovalStatus | |
| codeunit 72449777 “Field Change Management BTR” | OnApplyNewValuesFindWorkflowRecordChange |
| OnDiscardNewValuesFindWorkflowRecordChange | |
| codeunit 72449778 “WF Webhook Notification BTR” | OnPrepareWebhookPayloadOnBeforeWriteToText |
| codeunit 72449779 “WF Webhook Notify Task BTR” | OnFetchWorkflowWebhookNotificationInitParams |
| codeunit 72449780 “Workflow Webhook Mgmt BTR” | OnFindTaskSchedulerAllowed |
| OnPrepareWebhookPayloadWithxRecOnBeforeCompareField | |
| OnBeforeReturnValidateApproverConditionsResult | |
| codeunit 72449781 “Modification Handler BTR” | OnBeforeShouldHandleWorkflowEvent |
| OnShouldHandleWorkflowEventOnBeforeCompareField | |
| codeunit 72449785 “Workflow Condition Eval. BTR” | OnBeforeEvaluateCustomConditions |
| OnBeforeEvaluateCondition | |
| OnCustomEvaluateConditionOnTable | |
| OnBeforeEvaluateRecordChangeCondition | |
| codeunit 72449787 “Workflow Response Handling BTR” | OnSetStatusToRejected |