The CreatorCon Call for Content is officially open! Get started here.

Email Notification |want to add 3rd parameter.

Ankita NA
Tera Contributor

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

2 REPLIES 2

Dhananjay Pawar
Kilo Sage

Hi,

Can you try below code.

gs.eventQueue('pg.cmdb.hrprofileLOA',gr,records.toString(),gr.u_p_owned.getDisplayValue(),gr.owned.getDisplayValue());

dgarad
Giga Sage

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

If my answer finds you well, helpful, and related to the question asked. Please mark it as correct and helpful.

Thanks
dgarad