- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2022 03:24 AM
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
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2022 03:27 AM - edited 11-29-2022 03:28 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2022 03:27 AM - edited 11-29-2022 03:28 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2022 04:59 AM
Thanks @Mohith Devatte,
Working!