Inter-object communication
There are several ways to communicate between objects during Business Central processing. We will review some of the more commonly used ways in the following sections.
Communicating through data
The most widely used and simplest communication method is through data tables. For example, the No. Series
table in the Business Foundation app is the central control for all document numbers. Each object that assigns numbers to a document (for example, order, invoice, shipment, and so on) uses the 310 "No. Series"
or 308 "No. Series - Batch"
codeunits to access the No. Series
table for the next number to use. It then updates the No. Series
table so that the next object needing to assign a number to the same type of document will have the updated information.
Communicating through procedure parameters
When an object calls a procedure in another object, information is generally passed through the calling and return parameters. The calling...