how to use parm 2 in email script and fetch data
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2023 12:28 AM
Hi All,
I have a scheduled job from where i am triggering an event and sending parm2,
i want to use this parameter in my email script to glide data from incident table.
gs.eventQueue("eventname","current", parm1, parm2);
now i want to use parm2 which contains sys id of incidents, in my email script to glide the incidents and get their category, state and configuration item and display it in tabular format.
Incident | Configuration Item | Category | State |
inc1234567 | xyz | xyz | xyz |
inc4546567 | abc | abc | abc |
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2023 12:45 AM
in email script simply use this to access the value of parm2
var myValues = event.parm2;
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2023 01:35 AM
Thank you for marking my response as helpful.
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader