codeunitSustainabilityofficial - Microsoftderived - from the source, no model text

Codeunit 6279 "Sust. Approvals Mgmt."

Sustainability · Microsoft.Sustainability.Workflow

Across versions

  1. BC23-28not present
  2. BC29-30present

Neighbourhood 7 connected objects and pages

Codeunit 6280 "Sust. Workflow Event Handling" (event subscribers, 2 links)Sust. Workflow Event HandlingCodeunit 1535 "Approvals Mgmt." (calls, 17 links)Approvals Mgmt.Codeunit 6280 "Sust. Workflow Event Handling" (calls, 3 links)Sust. Workflow Event HandlingPage 6219 "Sustainability Journal" (calls, 3 links)Sustainability JournalCodeunit 1501 "Workflow Management" (calls, 2 links)Workflow ManagementCodeunit 27 "Confirm Management" (calls, 2 links)Confirm ManagementPage 658 "Approval Entries" (calls)Approval Entries

Open in the neighbourhood explorer

One hop out, from the extracted relations and call graph. Up to 40 shown; the sections below list them all.

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)
  • OnCancelSustainabilityJournalBatchApprovalRequest(var SustJournalBatch: Record "Sustainability Jnl. Batch") (integration)

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"): Boolean
  • HasAnyOpenJournalLineApprovalEntries(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

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.

Evidence 1 sources