COMError.number Method [AX 2012]
Returns the error code of the error that occurred when the COM object was called.
Community Additions
ADD
Show:
Returns the error code of the error that occurred when the COM object was called.