when a catalog item request is submitted a notification will be triggered to the requestor. We have a field where the requestor can enter multiple email id's as shown in snippet. Now we need to send notification to all the mentioned email id's includ

Neelu S
Tera Contributor

when a catalog item request is submitted a notification will be triggered to the requestor. We have a field where the requestor can enter multiple email id's as shown in snippet. Now we need to send notification to all the mentioned email id's including the requestor. How can we achieve that

1 ACCEPTED SOLUTION

Hello,

No your event Queue declaration needs correction we can send only two parameters in events 

push your requested for email also into the array like below

var emails = current.email_address.split(',');

emails.push(current.variables.requested_for.email.toString());

gs.eventQueue('signavio.request.created' ,current,SON.stringify(jsonObject),emails );

I am sending your resuested for emails and the other emails also at a time  in one parameter instead of multiple

please accept the solution if you find it helpful

View solution in original post

7 REPLIES 7

Please use the below script in workflow activity only as you are triggering your event in workflow activity 

var emails = current.email_address.split(',').toString();

pass this emails as a parameter to the event and check recepients in parm1 in notification.

Please accept the solution  if you find it helpful

var emails = current.email_address.split(',').toString();

gs.eventQueue('signavio.request.created', current, current.variables.requested_for.email,JSON.stringify(jsonObject),emails);

 

is this correct?

Hello,

No your event Queue declaration needs correction we can send only two parameters in events 

push your requested for email also into the array like below

var emails = current.email_address.split(',');

emails.push(current.variables.requested_for.email.toString());

gs.eventQueue('signavio.request.created' ,current,SON.stringify(jsonObject),emails );

I am sending your resuested for emails and the other emails also at a time  in one parameter instead of multiple

please accept the solution if you find it helpful