- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā07-07-2022 02:49 AM
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
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā07-07-2022 03:38 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā07-07-2022 03:16 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā07-07-2022 03:30 AM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā07-07-2022 03:38 AM
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