- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-17-2024 03:12 PM
I created an event and a notification, and the notification is triggered from a workflow using the 'Trigger an Event' step. I configured the workflow so that Parm1 will be the Recipient of the notification. I have a flow variable that populates into Parm1. In some cases, the flow variable will return 1 email address and other cases, the flow variable returns multiple email addresses separated by commas.
When the flow and event is triggered with only 1 email address in Parm1, the email is sent.
When the flow and event is triggered with 2+ email addresses in Parm1, the email is NOT being sent.
Can someone help me and figure out why the email is not being sent, and resolve it so that it does get sent?
Here is the script I have to populate the flow variable:
var emailList = [];
emailList = fd_data._9__for_each.item.user.email;
if (fd_data.flow_var.recipient == '')
return emailList;
else
return fd_data.flow_var.recipient + ',' + emailList;
I was trying to create an array, and the output of the flow variable shows 'user1@domain.com,user2@domain.com' and it populates in Parm1 of the event but for some reason it's not creating an email. I have attached two images, one event that isn't generating the email and one event that is generating the email with only 1 email address in Parm1.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-26-2024 01:27 PM
I resolved the issue. The issue was on the Notification itself; I had "Event Parm 1 Contains Recipient" set to No. Once I set this to Yes, my emails were sending.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-17-2024 03:18 PM
Please check this post and see if this is helpful
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-17-2024 03:20 PM
I have already read that and does not help. My event does get triggered and an email is sent, but only when there is one recipient. If there is more than 1 recipient, the email does not get sent even though the event still gets triggered.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-26-2024 01:27 PM
I resolved the issue. The issue was on the Notification itself; I had "Event Parm 1 Contains Recipient" set to No. Once I set this to Yes, my emails were sending.