---
title: "Codeunit 6280 Sust. Workflow Event Handling, extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/points/
object: https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/
app: "Sustainability"
major: 29
source: https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/
checked: 2026-11-20
changed: 2026-10-05
subject: "Microsoft Dynamics 365 Business Central"
license: "Metadata from Microsoft's symbol packages. AL source MIT, Copyright (c) Microsoft Corporation. Selection and wording © 2026 JOP-AL. https://jonas-paprotka.de/licenses/"
---

# Codeunit 6280 Sust. Workflow Event Handling, extension points 29

JOP-AL, https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/points/

27 procedures and triggers with a step in src/Apps/W1/Sustainability/app/src/Workflow/SustWorkflowEventHandling.Codeunit.al, in source order, read from the text, not from a run.

## AddWorkflowEventsToLibrary

[Line 32](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L32), local.

- [34](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L34) calls [Codeunit 1520 Workflow Event Handling](https://jonas-paprotka.de/ref/codeunit/1520-workflow-event-handling/) `AddEventToLibrary`
- [34](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L34) calls `RunWorkflowOnSendSustJournalBatchForApprovalCode`
- [35](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L35) calls [Codeunit 1520 Workflow Event Handling](https://jonas-paprotka.de/ref/codeunit/1520-workflow-event-handling/) `AddEventToLibrary`
- [35](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L35) calls `RunWorkflowOnCancelSustJournalBatchApprovalRequestCode`

## AddWorkflowEventPredecessorsToLibrary

[Line 39](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L39), local.

- [42](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L42) calls `RunWorkflowOnCancelSustJournalBatchApprovalRequestCode`
- [43](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L43) calls [Codeunit 1520 Workflow Event Handling](https://jonas-paprotka.de/ref/codeunit/1520-workflow-event-handling/) `AddEventPredecessor`
- [44](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L44) calls `RunWorkflowOnCancelSustJournalBatchApprovalRequestCode`
- [45](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L45) calls `RunWorkflowOnSendSustJournalBatchForApprovalCode`
- [46](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L46) calls [Codeunit 1520 Workflow Event Handling](https://jonas-paprotka.de/ref/codeunit/1520-workflow-event-handling/) `RunWorkflowOnApproveApprovalRequestCode`
- [47](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L47) calls [Codeunit 1520 Workflow Event Handling](https://jonas-paprotka.de/ref/codeunit/1520-workflow-event-handling/) `AddEventPredecessor`
- [48](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L48) calls [Codeunit 1520 Workflow Event Handling](https://jonas-paprotka.de/ref/codeunit/1520-workflow-event-handling/) `RunWorkflowOnApproveApprovalRequestCode`
- [49](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L49) calls `RunWorkflowOnSendSustJournalBatchForApprovalCode`
- [50](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L50) calls [Codeunit 1520 Workflow Event Handling](https://jonas-paprotka.de/ref/codeunit/1520-workflow-event-handling/) `RunWorkflowOnRejectApprovalRequestCode`
- [51](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L51) calls [Codeunit 1520 Workflow Event Handling](https://jonas-paprotka.de/ref/codeunit/1520-workflow-event-handling/) `AddEventPredecessor`
- [52](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L52) calls [Codeunit 1520 Workflow Event Handling](https://jonas-paprotka.de/ref/codeunit/1520-workflow-event-handling/) `RunWorkflowOnRejectApprovalRequestCode`
- [53](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L53) calls `RunWorkflowOnSendSustJournalBatchForApprovalCode`
- [54](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L54) calls [Codeunit 1520 Workflow Event Handling](https://jonas-paprotka.de/ref/codeunit/1520-workflow-event-handling/) `RunWorkflowOnDelegateApprovalRequestCode`
- [55](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L55) calls [Codeunit 1520 Workflow Event Handling](https://jonas-paprotka.de/ref/codeunit/1520-workflow-event-handling/) `AddEventPredecessor`
- [56](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L56) calls [Codeunit 1520 Workflow Event Handling](https://jonas-paprotka.de/ref/codeunit/1520-workflow-event-handling/) `RunWorkflowOnDelegateApprovalRequestCode`
- [57](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L57) calls `RunWorkflowOnSendSustJournalBatchForApprovalCode`

## OnAfterInsertApprovalsTableRelations

[Line 62](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L62), local.

- [66](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L66) calls [Codeunit 1502 Workflow Setup](https://jonas-paprotka.de/ref/codeunit/1502-workflow-setup/) `InsertTableRelation`

## AddWorkflowTableRelationsToLibrary

[Line 70](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L70), local.

- [74](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L74) calls [Codeunit 1502 Workflow Setup](https://jonas-paprotka.de/ref/codeunit/1502-workflow-setup/) `InsertTableRelation`

## AddWorkflowResponsePredecessorsToLibrary

[Line 78](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L78), local.

- [81](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L81) calls [Codeunit 1521 Workflow Response Handling](https://jonas-paprotka.de/ref/codeunit/1521-workflow-response-handling/) `CreateApprovalRequestsCode`
- [82](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L82) calls [Codeunit 1521 Workflow Response Handling](https://jonas-paprotka.de/ref/codeunit/1521-workflow-response-handling/) `AddResponsePredecessor`
- [82](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L82) calls `RunWorkflowOnSendSustJournalBatchForApprovalCode`
- [83](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L83) calls [Codeunit 1521 Workflow Response Handling](https://jonas-paprotka.de/ref/codeunit/1521-workflow-response-handling/) `SendApprovalRequestForApprovalCode`
- [84](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L84) calls [Codeunit 1521 Workflow Response Handling](https://jonas-paprotka.de/ref/codeunit/1521-workflow-response-handling/) `AddResponsePredecessor`
- [84](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L84) calls `RunWorkflowOnSendSustJournalBatchForApprovalCode`
- [85](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L85) calls [Codeunit 1521 Workflow Response Handling](https://jonas-paprotka.de/ref/codeunit/1521-workflow-response-handling/) `CancelAllApprovalRequestsCode`
- [86](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L86) calls [Codeunit 1521 Workflow Response Handling](https://jonas-paprotka.de/ref/codeunit/1521-workflow-response-handling/) `AddResponsePredecessor`
- [86](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L86) calls `RunWorkflowOnCancelSustJournalBatchApprovalRequestCode`

## RunWorkflowOnSendSustJournalBatchForApproval

[Line 91](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L91), local.

- [93](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L93) calls [Codeunit 1501 Workflow Management](https://jonas-paprotka.de/ref/codeunit/1501-workflow-management/) `HandleEvent`
- [93](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L93) calls `RunWorkflowOnSendSustJournalBatchForApprovalCode`

## RunWorkflowOnCancelSustJournalBatchApprovalRequest

[Line 97](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L97), local.

- [99](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L99) calls [Codeunit 1501 Workflow Management](https://jonas-paprotka.de/ref/codeunit/1501-workflow-management/) `HandleEvent`
- [99](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L99) calls `RunWorkflowOnCancelSustJournalBatchApprovalRequestCode`

## OnAddWorkflowCategoriesToLibrary

[Line 103](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L103), local.

- [105](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L105) calls [Codeunit 1502 Workflow Setup](https://jonas-paprotka.de/ref/codeunit/1502-workflow-setup/) `InsertWorkflowCategory`

## InsertWorkflowTemplates

[Line 109](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L109), local.

- [111](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L111) calls `InsertSustJournalBatchApprovalWorkflowTemplate`

## InsertRequestPageFields

[Line 115](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L115), local.

- [119](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L119) calls [Codeunit 1522 Workflow Request Page Handling](https://jonas-paprotka.de/ref/codeunit/1522-workflow-request-page-handling/) `InsertDynReqPageField`
- [120](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L120) calls [Codeunit 1522 Workflow Request Page Handling](https://jonas-paprotka.de/ref/codeunit/1522-workflow-request-page-handling/) `InsertDynReqPageField`

## RemoveSustJournalBatchRestrictionsBeforeDelete

[Line 124](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L124), local.

- [128](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L128) calls [Codeunit 1550 Record Restriction Mgt.](https://jonas-paprotka.de/ref/codeunit/1550-record-restriction-mgt/) `AllowRecordUsage`

## RemoveSustJournalLineRestrictionsBeforeDelete

[Line 132](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L132), local.

- [136](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L136) calls [Codeunit 1550 Record Restriction Mgt.](https://jonas-paprotka.de/ref/codeunit/1550-record-restriction-mgt/) `AllowRecordUsage`

## UpdateSustJournalBatchRestrictionsAfterRename

[Line 140](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L140), local.

- [144](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L144) calls [Codeunit 1550 Record Restriction Mgt.](https://jonas-paprotka.de/ref/codeunit/1550-record-restriction-mgt/) `UpdateRestriction`

## RestrictSustJournalLineAfterInsert

[Line 148](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L148), local.

- [150](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L150) calls `RestrictSustJournalLine`

## RestrictSustJournalLineAfterModify

[Line 154](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L154), local.

- [159](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L159) calls `RestrictSustJournalLine`

## OnAfterCheckSustainabilityJournalLine

[Line 163](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L163), local.

- [165](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L165) calls `CheckRecordHasUsageRestrictions`

## OnBeforeAllowRecordUsageDefault

[Line 169](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L169), local.

- [180](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L180) calls `AllowSustJournalBatchUsage`

## OnConditionalCardPageIDNotFound

[Line 185](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L185), local.

- [189](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L189) calls `GetSustJournalBatchPageID`
- [191](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L191) calls `GetSustJournalLinePageID`

## AllowSustJournalBatchUsage

[Line 210](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L210), internal.

- [215](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L215) calls [Codeunit 1550 Record Restriction Mgt.](https://jonas-paprotka.de/ref/codeunit/1550-record-restriction-mgt/) `AllowRecordUsage`
- [221](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L221) calls [Codeunit 1550 Record Restriction Mgt.](https://jonas-paprotka.de/ref/codeunit/1550-record-restriction-mgt/) `AllowRecordUsage`

## CheckRecordHasUsageRestrictions

[Line 225](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L225), local.

- [232](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L232) calls [Codeunit 1550 Record Restriction Mgt.](https://jonas-paprotka.de/ref/codeunit/1550-record-restriction-mgt/) `CheckRecordHasUsageRestrictions`
- [233](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L233) calls [Codeunit 1550 Record Restriction Mgt.](https://jonas-paprotka.de/ref/codeunit/1550-record-restriction-mgt/) `CheckRecordHasUsageRestrictions`

## RestrictSustJournalLine

[Line 236](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L236), local.

- [243](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L243) calls [Codeunit 6279 Sust. Approvals Mgmt.](https://jonas-paprotka.de/ref/codeunit/6279-sust-approvals-mgmt/) `IsSustJournalBatchApprovalsWorkflowEnabled`
- [244](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L244) calls [Codeunit 1550 Record Restriction Mgt.](https://jonas-paprotka.de/ref/codeunit/1550-record-restriction-mgt/) `RestrictRecordUsage`

## InsertSustJournalBatchApprovalWorkflowTemplate

[Line 247](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L247), local.

- [251](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L251) calls [Codeunit 1502 Workflow Setup](https://jonas-paprotka.de/ref/codeunit/1502-workflow-setup/) `GetWorkflowTemplateCode`
- [254](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L254) calls [Codeunit 1502 Workflow Setup](https://jonas-paprotka.de/ref/codeunit/1502-workflow-setup/) `InsertWorkflowTemplate`
- [255](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L255) calls `InsertSustJournalBatchApprovalWorkflowDetails`
- [256](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L256) calls [Codeunit 1502 Workflow Setup](https://jonas-paprotka.de/ref/codeunit/1502-workflow-setup/) `MarkWorkflowAsTemplate`

## InsertSustJournalBatchApprovalWorkflowDetails

[Line 259](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L259), local.

- [263](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L263) calls [Codeunit 1502 Workflow Setup](https://jonas-paprotka.de/ref/codeunit/1502-workflow-setup/) `InitWorkflowStepArgument`
- [268](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L268) calls `InsertSustJnlBatchApprovalWorkflowSteps`
- [268](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L268) calls `BuildSustJournalBatchTypeConditions`
- [269](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L269) calls `RunWorkflowOnSendSustJournalBatchForApprovalCode`
- [270](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L270) calls [Codeunit 1521 Workflow Response Handling](https://jonas-paprotka.de/ref/codeunit/1521-workflow-response-handling/) `CreateApprovalRequestsCode`
- [271](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L271) calls [Codeunit 1521 Workflow Response Handling](https://jonas-paprotka.de/ref/codeunit/1521-workflow-response-handling/) `SendApprovalRequestForApprovalCode`
- [272](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L272) calls `RunWorkflowOnCancelSustJournalBatchApprovalRequestCode`

## BuildSustJournalBatchTypeConditions

[Line 276](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L276), local.

- [280](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L280) calls `BuildSustJournalBatchTypeConditionsFromRec`

## BuildSustJournalBatchTypeConditionsFromRec

[Line 283](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L283), local.

- [285](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L285) calls [Codeunit 1502 Workflow Setup](https://jonas-paprotka.de/ref/codeunit/1502-workflow-setup/) `Encode`

## InsertSustJnlBatchApprovalWorkflowSteps

[Line 288](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L288), local.

- [305](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L305) calls [Codeunit 1502 Workflow Setup](https://jonas-paprotka.de/ref/codeunit/1502-workflow-setup/) `InsertEntryPointEventStep`
- [306](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L306) calls [Codeunit 1502 Workflow Setup](https://jonas-paprotka.de/ref/codeunit/1502-workflow-setup/) `InsertEventArgument`
- [308](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L308) calls [Codeunit 1502 Workflow Setup](https://jonas-paprotka.de/ref/codeunit/1502-workflow-setup/) `InsertResponseStep`
- [308](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L308) calls [Codeunit 1521 Workflow Response Handling](https://jonas-paprotka.de/ref/codeunit/1521-workflow-response-handling/) `RestrictRecordUsageCode`
- [310](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L310) calls [Codeunit 1502 Workflow Setup](https://jonas-paprotka.de/ref/codeunit/1502-workflow-setup/) `InsertResponseStep`
- [312](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L312) calls [Codeunit 1502 Workflow Setup](https://jonas-paprotka.de/ref/codeunit/1502-workflow-setup/) `InsertApprovalArgument`
- [316](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L316) calls [Codeunit 1502 Workflow Setup](https://jonas-paprotka.de/ref/codeunit/1502-workflow-setup/) `InsertResponseStep`
- [318](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L318) calls [Codeunit 1502 Workflow Setup](https://jonas-paprotka.de/ref/codeunit/1502-workflow-setup/) `InsertNotificationArgument`
- [320](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L320) calls [Codeunit 1502 Workflow Setup](https://jonas-paprotka.de/ref/codeunit/1502-workflow-setup/) `InsertEventStep`
- [320](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L320) calls [Codeunit 1520 Workflow Event Handling](https://jonas-paprotka.de/ref/codeunit/1520-workflow-event-handling/) `RunWorkflowOnApproveApprovalRequestCode`
- [322](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L322) calls [Codeunit 1502 Workflow Setup](https://jonas-paprotka.de/ref/codeunit/1502-workflow-setup/) `InsertEventArgument`
- [322](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L322) calls [Codeunit 1502 Workflow Setup](https://jonas-paprotka.de/ref/codeunit/1502-workflow-setup/) `BuildNoPendingApprovalsConditions`
- [323](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L323) calls [Codeunit 1502 Workflow Setup](https://jonas-paprotka.de/ref/codeunit/1502-workflow-setup/) `InsertResponseStep`
- [323](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L323) calls [Codeunit 1521 Workflow Response Handling](https://jonas-paprotka.de/ref/codeunit/1521-workflow-response-handling/) `AllowRecordUsageCode`
- [325](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L325) calls [Codeunit 1502 Workflow Setup](https://jonas-paprotka.de/ref/codeunit/1502-workflow-setup/) `InsertEventStep`
- [325](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L325) calls [Codeunit 1520 Workflow Event Handling](https://jonas-paprotka.de/ref/codeunit/1520-workflow-event-handling/) `RunWorkflowOnApproveApprovalRequestCode`
- [327](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L327) calls [Codeunit 1502 Workflow Setup](https://jonas-paprotka.de/ref/codeunit/1502-workflow-setup/) `InsertEventArgument`
- [327](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L327) calls [Codeunit 1502 Workflow Setup](https://jonas-paprotka.de/ref/codeunit/1502-workflow-setup/) `BuildPendingApprovalsConditions`
- [328](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L328) calls [Codeunit 1502 Workflow Setup](https://jonas-paprotka.de/ref/codeunit/1502-workflow-setup/) `InsertResponseStep`
- [328](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L328) calls [Codeunit 1521 Workflow Response Handling](https://jonas-paprotka.de/ref/codeunit/1521-workflow-response-handling/) `SendApprovalRequestForApprovalCode`
- [331](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L331) calls [Codeunit 1502 Workflow Setup](https://jonas-paprotka.de/ref/codeunit/1502-workflow-setup/) `SetNextStep`
- [333](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L333) calls [Codeunit 1502 Workflow Setup](https://jonas-paprotka.de/ref/codeunit/1502-workflow-setup/) `InsertEventStep`
- [333](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L333) calls [Codeunit 1520 Workflow Event Handling](https://jonas-paprotka.de/ref/codeunit/1520-workflow-event-handling/) `RunWorkflowOnRejectApprovalRequestCode`
- [335](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L335) calls [Codeunit 1502 Workflow Setup](https://jonas-paprotka.de/ref/codeunit/1502-workflow-setup/) `InsertResponseStep`
- [335](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L335) calls [Codeunit 1521 Workflow Response Handling](https://jonas-paprotka.de/ref/codeunit/1521-workflow-response-handling/) `RejectAllApprovalRequestsCode`
- [337](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L337) calls [Codeunit 1502 Workflow Setup](https://jonas-paprotka.de/ref/codeunit/1502-workflow-setup/) `InsertNotificationArgument`
- [339](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L339) calls [Codeunit 1502 Workflow Setup](https://jonas-paprotka.de/ref/codeunit/1502-workflow-setup/) `InsertEventStep`
- [340](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L340) calls [Codeunit 1502 Workflow Setup](https://jonas-paprotka.de/ref/codeunit/1502-workflow-setup/) `InsertResponseStep`
- [340](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L340) calls [Codeunit 1521 Workflow Response Handling](https://jonas-paprotka.de/ref/codeunit/1521-workflow-response-handling/) `CancelAllApprovalRequestsCode`
- [342](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L342) calls [Codeunit 1502 Workflow Setup](https://jonas-paprotka.de/ref/codeunit/1502-workflow-setup/) `InsertNotificationArgument`
- [343](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L343) calls [Codeunit 1502 Workflow Setup](https://jonas-paprotka.de/ref/codeunit/1502-workflow-setup/) `InsertResponseStep`
- [343](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L343) calls [Codeunit 1521 Workflow Response Handling](https://jonas-paprotka.de/ref/codeunit/1521-workflow-response-handling/) `ShowMessageCode`
- [344](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L344) calls [Codeunit 1502 Workflow Setup](https://jonas-paprotka.de/ref/codeunit/1502-workflow-setup/) `InsertMessageArgument`
- [346](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L346) calls [Codeunit 1502 Workflow Setup](https://jonas-paprotka.de/ref/codeunit/1502-workflow-setup/) `InsertEventStep`
- [346](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L346) calls [Codeunit 1520 Workflow Event Handling](https://jonas-paprotka.de/ref/codeunit/1520-workflow-event-handling/) `RunWorkflowOnDelegateApprovalRequestCode`
- [348](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L348) calls [Codeunit 1502 Workflow Setup](https://jonas-paprotka.de/ref/codeunit/1502-workflow-setup/) `InsertResponseStep`
- [348](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L348) calls [Codeunit 1521 Workflow Response Handling](https://jonas-paprotka.de/ref/codeunit/1521-workflow-response-handling/) `SendApprovalRequestForApprovalCode`
- [351](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L351) calls [Codeunit 1502 Workflow Setup](https://jonas-paprotka.de/ref/codeunit/1502-workflow-setup/) `SetNextStep`

## GetSustJournalBatchPageID

[Line 354](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L354), local.

- [371](https://jonas-paprotka.de/ref/codeunit/6280-sust-workflow-event-handling/source/#L371) calls `GetSustJournalLinePageID`

## Source

AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at 4303e5e584d3aa5d9e98cbc615525a5396ad6ed7.

JOP-AL, 2026-11-20.
