Email Notification |want to add 3rd parameter.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2024 04:50 AM
Hi Team,
I am working one of the emails notifications, triggering the event corresponding to email via BR.
My req is I have to pass three parameters in gs.eventQueue('pg.cmdb.hrprofileLOA',gr,records,gr.u_p_owned.getDisplayValue(),gr.owned.getDisplayValue());
If we are passing only 2 parameters its working as expected, where "records" is an array containing Sys_id of CI's.
What is the way to pass 3 parameters.
Please help me to achieve it.
Thanks and Regards,
Ankita

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2024 04:58 AM
Hi,
Can you try below code.
gs.eventQueue('pg.cmdb.hrprofileLOA',gr,records.toString(),gr.u_p_owned.getDisplayValue(),gr.owned.getDisplayValue());
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2024 05:10 AM
Hi @Ankita NA
try below code
var obj = {user1: gr.u_p_owned.getDisplayValue(), user2: gr.u_p_owned.getDisplayValue()};
arr.push(obj);
gs.eventQueue('pg.cmdb.hrprofileLOA',gr,records, arr);
Thanks
dgarad