My event is being triggered but my email is not being sent

neil_b
Tera Guru

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.

1 ACCEPTED SOLUTION

neil_b
Tera Guru

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. 

View solution in original post

3 REPLIES 3

Gangadhar Ravi
Giga Sage
Giga Sage

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.

neil_b
Tera Guru

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.