GlobalMessage
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
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
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
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