Skip to content


Capture Error Number

Donald asked 7 years ago
I would like to create a script that would update a table based on the failed document’s error number. Is there a way to capture the error number in a variable?
Patrick Roth Staff answered 7 years ago
You can use the GlobalLastError variable as is should give you the last error encountered.  It would be the entire error however so if you are looking for the econnect number itself, you would have to parse the message and find it yourself.

If you would like to submit an answer or comment, please sign in to the eOne portal.