How to pass the optional parameters - Dynamics AX 2012

Passing optional parameters in Dynamics AX 2012 functions and methods

Add these to the end of the passing parameters in your function declaration. Just default to null or empty values.

void functionname (BirthDate dob = datenull(),
FirstName firstName = '',

LastName lastName = '',
VendTrans _vendTrans = null
 );


Comments

Popular posts from this blog

Export Data from AX 2012 - using DIXF (Data Migration Framework)

The virtual path maps to another application, which is not allowed

Agile Management - TFS (Priority, Stack Rank and Severity)