- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2023 08:10 AM
I created an event-triggered notification.
An event can have two arguments.
I'm thinking of setting a string in the event argument and having the notification template split the argument string and set it.
I am new to notification scripts.
Could you tell me how to reflect the event content in the notification template?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2023 11:30 AM
Hi, if you are setting a single event parameter with multiple string values to represent an array or object, then you will need to utilize a notification email script as there is no functionality available in 'notifications' that will allow you to extract the separate values from the single event parameter.
Scripting for email notifications (servicenow.com)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2023 11:30 AM
Hi, if you are setting a single event parameter with multiple string values to represent an array or object, then you will need to utilize a notification email script as there is no functionality available in 'notifications' that will allow you to extract the separate values from the single event parameter.
Scripting for email notifications (servicenow.com)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2023 12:13 PM
You can pass an object in your parameter and retrieve the values on the email script.
Check below:
Please mark my response as correct and helpful if it helped solved your question.
-Thanks