SendEmail icon indicating copy to clipboard operation
SendEmail copied to clipboard

Can't send inside loop in Flow?

Open mcculloughcm opened this issue 4 years ago • 2 comments

Hi, I'm trying to use your action in a scheduled Flow that sends reminder emails to campaign members on the day of an event. I've got the email action inside of that loop, but the email won't send.

There isn't an error; the debug log looks like everything is working; and the tasks gets created successfully. But there's nothing in my inbox, and nothing in the email log. Deliverability is turned on (I'm using your action in a confirmation email flow that's triggered by campaign member creation and it's working as expected there). I know it's a long shot, but any guesses as to what could be happening? Thank you.

mcculloughcm avatar Sep 14 '20 16:09 mcculloughcm

I'm in the same boat, although my email action is on the outside of the loop and I'm using the loop to add multiple email addresses to the recipient field. The task is created, correctly showing multiple email addresses, but there's no email going out.

Also using a scheduled flow; had to follow these instructions to get Apex class access to the Automated User, but that seems to be working ok. Wondering if perhaps there is a deliverability issue with the Automated User profile?

D-McGovern avatar Oct 27 '20 15:10 D-McGovern

I'd recommend setting up the email logging https://help.salesforce.com/s/articleView?id=sf.emailadmin_monitor_emails_sent_from_salesforce.htm&type=5

mike-cleaver avatar Dec 21 '22 21:12 mike-cleaver