Skip to content
+1-888-319-3663

COMMUNITY FORUM

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?
Answers
Patrick Roth Staff answered 7 years ago
Donald,
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.
 
patrick

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