Tuesday, January 28, 2014

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

No comments:

Post a Comment