Codeunit 6279 "Sust. Approvals Mgmt."
Sustainability · Microsoft.Sustainability.Workflow
Across versions
- BC23-28not present
- BC29-30present
Neighbourhood 7 connected objects and pages
Sustainability · Microsoft.Sustainability.Workflow · BC29-30 · source at ea08af5e · facts from BC29
Events published
OnBeforeIsSustJournalBatchApprovalsWorkflowEnabled(var SustJournalBatch: Record "Sustainability Jnl. Batch"; var Result: Boolean; var IsHandled: Boolean)(integration)OnSendSustainabilityJournalBatchForApproval(var SustJournalBatch: Record "Sustainability Jnl. Batch")(integration)- subscribers: Codeunit 6280 “Sust. Workflow Event Handling” RunWorkflowOnSendSustJournalBatchForApproval
OnCancelSustainabilityJournalBatchApprovalRequest(var SustJournalBatch: Record "Sustainability Jnl. Batch")(integration)- subscribers: Codeunit 6280 “Sust. Workflow Event Handling” RunWorkflowOnCancelSustJournalBatchApprovalRequest
Event subscriptions
- PopulateApprovalEntryArgument subscribes to Codeunit “Approvals Mgmt.” OnPopulateApprovalEntryArgument
- OnPreventDeletingRecordWithOpenApprovalEntryElseCase subscribes to Codeunit “Approvals Mgmt.” OnPreventDeletingRecordWithOpenApprovalEntryElseCase
- OnPreventInsertRecIfOpenApprovalEntryExistElseCase subscribes to Codeunit “Approvals Mgmt.” OnPreventInsertRecIfOpenApprovalEntryExistElseCase
- DeleteApprovalEntriesAfterDeleteSustJournalBatch subscribes to Table “Sustainability Jnl. Batch” OnAfterDeleteEvent
Procedures
ApproveSustJournalLineRequest(SustJournalLine: Record "Sustainability Jnl. Line")(internal)RejectSustJournalLineRequest(SustJournalLine: Record "Sustainability Jnl. Line")(internal)DelegateSustJournalLineRequest(SustJournalLine: Record "Sustainability Jnl. Line")(internal)TrySendJournalBatchApprovalRequest(var SustJournalLine: Record "Sustainability Jnl. Line")(internal)TryCancelJournalBatchApprovalRequest(var SustJournalLine: Record "Sustainability Jnl. Line")(internal)IsSustJournalBatchApprovalsWorkflowEnabled(var SustJournalBatch: Record "Sustainability Jnl. Batch"): Boolean(internal)CheckSustJournalBatchApprovalsWorkflowEnabled(var SustJournalBatch: Record "Sustainability Jnl. Batch"): BooleanHasAnyOpenJournalLineApprovalEntries(JournalTemplateName: Code[20]; JournalBatchName: Code[20]): Boolean(internal)ShowJournalApprovalEntries(var SustJournalLine: Record "Sustainability Jnl. Line")(internal)GetSustJnlBatchApprovalStatus(SustJournalLine: Record "Sustainability Jnl. Line"; var SustJnlBatchApprovalStatus: Text[20]; EnabledSustJnlBatchWorkflowsExist: Boolean)(internal)CleanSustJournalApprovalStatus(SustJournalLine: Record "Sustainability Jnl. Line"; var GenJnlBatchApprovalStatus: Text[20])(internal)
Plus 6 local procedures.
Calls
From the extracted call graph of BC29 (graphify-al on the snapshot checkout): calls whose target is known from a declared type or an Object::"Name" argument. Interface dispatch and calls through events are not counted, so the list is not complete.
- Codeunit 1535 “Approvals Mgmt.” (17 calls:
ApproveSustJournalLineRequest → ApproveRecordApprovalRequest,ApproveSustJournalLineRequest → FindOpenApprovalEntryForCurrUser,CleanSustJournalApprovalStatus → FindApprovalEntryByRecordId, …) - Codeunit 1501 “Workflow Management” (2 calls:
CheckSustJournalBatchApprovalsWorkflowEnabled → CanExecuteWorkflow,IsSustJournalBatchApprovalsWorkflowEnabled → CanExecuteWorkflow) - Codeunit 27 “Confirm Management” (2 calls:
OnPreventDeletingRecordWithOpenApprovalEntryElseCase → GetResponseOrDefault,OnPreventInsertRecIfOpenApprovalEntryExistElseCase → GetResponseOrDefault) - Codeunit 6280 “Sust. Workflow Event Handling” (2 calls:
CheckSustJournalBatchApprovalsWorkflowEnabled → RunWorkflowOnSendSustJournalBatchForApprovalCode,IsSustJournalBatchApprovalsWorkflowEnabled → RunWorkflowOnSendSustJournalBatchForApprovalCode) - Page 658 “Approval Entries” (1 call:
ShowJournalApprovalEntries → (object))
Called by
- Page 6219 “Sustainability Journal” (3 calls:
OnAfterGetCurrRecord → GetSustJnlBatchApprovalStatus,OnModifyRecord → CleanSustJournalApprovalStatus,SetApprovalStateForBatch → HasAnyOpenJournalLineApprovalEntries) - Codeunit 6280 “Sust. Workflow Event Handling” (1 call:
RestrictSustJournalLine → IsSustJournalBatchApprovalsWorkflowEnabled)
Ask your agent
Procedure bodies are not stored here (D10). The call sections above are our own, per object, from the BC29 call graph. For a procedure body or the calls of one procedure, ask bc-code-atlas (external, by Stefan Maron, MIT; default corpus w1-28), which the bc-observatory plugin connects: bcatlas_resolve_node(object_type: "codeunit", object_name: "Sust. Approvals Mgmt."), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.