setPrefix Function
Dynamics AX 2009
Sets the prefix for the current execution scope.
int setPrefix(str _prefix)
The complete prefix for the execution can be fetched by using the getPrefix function. When leaving the scope, the prefix is automatically reset to the previous level. The prefix mechanism makes it more straightforward to write precise error messages about the transactions performed by an application.
Suppose the AA method calls the BB method, and each method calls this function. Messages written to the Infolog by the BB method appear nested in a hierarchy. When the BB method ends and control returns to the AA method, the prefix that was set by the BB method is not attached to subsequent messages.
Community Additions
ADD
Show: