How to pass 3 parameter from event queue and use it in notification.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2023 03:51 AM
Hi All,
I want to pass 3 parameters to in event queue,
gs.eventQueue("event name", current, current.assignment_group ,(value1,value2 ));
I want to use value 1 and value 2 in notification;
6 REPLIES 6
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2023 04:10 AM
Hi Priya,
You can use the following approach:
var jsonObj = {};
jsonObj.name = 'Abel Tuter';
jsonObj.email = 'abel.tuter@example.com';
gs.eventQueue('Event Name', GlideRecord Obj, parm1, JSON.stringify(jsonObj));
Regards,
Munender
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2023 04:14 AM
I would suggest approach suggested by @Ahmmed Ali which uses JSON object.
Regards,
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader