Mail script notification that includes variables not working in London release

mhurley
Kilo Contributor

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.

 

find_real_file.png

5 REPLIES 5

Allen Andreas
Administrator
Administrator

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):

find_real_file.png

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!

mhurley
Kilo Contributor

Hi Allen, could you provide the script "requested_item_variable_summary" for me? When I search for it I do not see that in our list.

find_real_file.png

Thanks,

Mark

Hmm, that might be a custom one I did, but the requested_items_summary_with_options should work, try that and let me know!

find_real_file.png

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!

mhurley
Kilo Contributor

The requested_items_summary_with_options does not work either. 😞