Mail script notification that includes variables not working in London release
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-20-2018 01:30 PM
When a catalog task email notification is triggered it sends notification that includes all the variables from the item form. This has been working fine for years but now on London release when the notification is triggered it only grabs one variable and not all of them. Below is the script, can anyone help me correct? I am not a coder, script was put in by a vendor that no longer supports us, thank you.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-20-2018 01:55 PM
Hi,
Well, for starters, anytime you upgrade, and it seems you all did, this is bound to happen as ServiceNow changes things. Not sure if you just went from Kingston up to London or if you guys were several versions behind, but I'm just explaining that for the record.
With that being said, there are already OOB scripts or at least are now...to basically summarize or "print" all the variables for you without this makeshift script your vendor created.
I'd recommend for you to look at your System Notification > Email > Notification Email Scripts and look for these (one is OOB the other could be one I made, so ignore that):
I believe you should have requested_item_variable_summary
To use this, remove the <mail script> and everything in between that and the </mail script> and just replace it all with this:
${mail_script:requested_item_variable_summary} or ${mail_script:name of whatever you found looking above}
Save and then click preview and see if that's to your liking.
Please mark reply as Helpful/Correct, if applicable. Thanks!
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-20-2018 02:05 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-20-2018 02:26 PM
Hmm, that might be a custom one I did, but the requested_items_summary_with_options should work, try that and let me know!
I have a few more showing due to customization I've done, but try the with options one or just the item summary one. The one that I have marked with null is to not show variables that are blank or equal false (like a boolean field).
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-20-2018 02:35 PM
The requested_items_summary_with_options does not work either. 😞