Loads and executes the unit of C/AL code you specify. See also RUN Function (Codeunit).

[Ok :=] Codeunit.RUN(Number[, Record])

Parameters

Number

An integer data type that identifies the unit of C/AL code. You can use the Symbols option on the View menu to choose from a list.

If the codeunit you specify does not exist, a run-time error occurs.

If you run the codeunit with a record from a table other than the one it is associated with, a run-time error occurs.

Record

This optional parameter identifies a record. This parameter is a record data type.

Expand imageProperty Value/Return Value

Expand imageExample

Expand imageSee Also