Skip to content
+1-888-319-3663

COMMUNITY FORUM

GlobalMessage

JENNMORTON@HOTMAIL.COM asked 8 years ago
Hey Everyone,

I have a script to create a global message then email the results.

When I run my map, I get (say 5 documents succeeded) 5 emails. 1 being the first item, the second being the first and second documents the third being the first three documents etc.

Anyone know how to correct this? I have done the same script on a document fail and it works with no issue.

Thank you.

Jenn
Answers
Best Answer
Ruaan Jonker answered 8 years ago
Hi Jenn

There are 2 system variables that contain the errors on a map.
The "GlobalRunErrors" and "GlobalLastError".

If you want to send email per document please use GlobalLastError and you should only recieve the last document error in the email.

The GlobalRunErrors can be used in a Map Fail script to send 1 email containing all the failures for the map.

Thanks,
Ruaan

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