Codeunit 85 "Sales Post Batch via Job Queue"
Base Application · Microsoft.Sales.Posting
Across versions
- BC23present
- BC243 events added, 1 procedures added
- BC25-26unchanged
- BC271 procedures changed
- BC28-30unchanged
Neighbourhood 5 connected objects and pages
Base Application · Microsoft.Sales.Posting · BC23-30 · source at ea08af5e · facts from BC29
Properties
| Property | Value |
|---|---|
| TableNo | Job Queue Entry |
Events published
OnPrintToPDFOnAfterReportInboxInsert(var ReportInbox: Record "Report Inbox"; var SalesHeader: Record "Sales Header"; var RecRef: RecordRef)(integration): Raised after inserting the report into the report inbox after printing to PDF.OnPrintToPDFOnBeforeReportRun(ReportId: Integer; RecRef: RecordRef; var OStream: OutStream; var IsSuccess: Boolean; var IsHandled: Boolean)(integration): Raised before running the report to generate the PDF.OnPostSalesBatchOnBeforeRunSalesPost(var SalesHeader: Record "Sales Header")+ BC24 (integration): Raised before the Sales-Post codeunit runs for each document in the batch.OnPostSalesBatchOnAfterRunSalesPost(var SalesHeader: Record "Sales Header")+ BC24 (integration): Raised after the Sales-Post codeunit has successfully run for each document in the batch.OnBeforePrintDocument(ReportUsage: Enum "Report Selection Usage"; RecRef: RecordRef; SalesHeader: Record "Sales Header"; JobQueueEntry: Record "Job Queue Entry"; var Result: Boolean; var IsHandled: Boolean)+ BC24 (integration): Raised before printing a document in the batch.
Procedures
EnqueueSalesBatch(var SalesHeader: Record "Sales Header"; var JobQueueEntry: Record "Job Queue Entry"): Enqueues a batch of sales documents for posting via the job queue.
Plus 13 local procedures.
Triggers
OnRun
Relations
- runs on Table 472 “Job Queue Entry”
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 28 “Error Message Management” (2 calls:
PostSalesBatch → LogLastError,PrintDocument → LogLastError) - Codeunit 453 “Job Queue - Enqueue” (1 call:
EnqueueJobQueueEntry → (object)) - Codeunit 80 “Sales-Post” (1 call:
PostSalesBatch → (object))
Called by
- Codeunit 1371 “Sales Batch Post Mgt.” (1 call:
ProcessBatchInBackground → EnqueueSalesBatch)
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: "Sales Post Batch via Job Queue"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.