Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

How to use 3 parameters in event queue

MS17
Tera Contributor

Hi all,

I need to trigger email notification, for that I have used event queue, this should be triggered to 3 persons ( task owner, manager, director). how to use 3 parameters in event queue. 

I have tried like this,

-> gs.eventQueue('fdx.change_task.pastdue10', ctask, ctask.assigned_to, ctask.assigned_to.manager); // triggering task owner& manager.

Can we use similarly for 3 persons as below, will that work? is there any other way to do this?

-> gs.eventQueue('fdx.change_task.pastdue10', ctask, ctask.assigned_to, ctask.assigned_to.manager,ctask.assigned_to.u_director); // for 3 persons

 

 

1 ACCEPTED SOLUTION

Mohith Devatte
Tera Sage

Hello @MS17 ,

you can push all those three users into an array and send it like below 

 

var arr = [];

arr.push(ctask.assigned_to.manager.toString());

arr.push(ctask.assigned_to.u_director.toString());

arr.push(ctask.assigned_to.assigned_to.toString());

gs.eventQueue('fdx.change_task.pastdue10', ctask,arr.toString(),''); 

 

 

 

Hope this helps 

Mark my answer correct if this helps you 

Thanks

View solution in original post

2 REPLIES 2

Mohith Devatte
Tera Sage

Hello @MS17 ,

you can push all those three users into an array and send it like below 

 

var arr = [];

arr.push(ctask.assigned_to.manager.toString());

arr.push(ctask.assigned_to.u_director.toString());

arr.push(ctask.assigned_to.assigned_to.toString());

gs.eventQueue('fdx.change_task.pastdue10', ctask,arr.toString(),''); 

 

 

 

Hope this helps 

Mark my answer correct if this helps you 

Thanks

MS17
Tera Contributor

Thanks @Mohith Devatte

Working!