Visual Workflow – Email Not Sent in Scheduled Flow: Troubleshooting

I have a scheduled flow that is set to run daily and it calls a subflow that sends an email (this is just an MVP).

When I manually run or debug the subflow, the email is sent (It's not allowed to manually run a scheduled parent flow). But when I activate both flows and wait for the scheduled flow to run, the rest of the flow is executed, but the email is not sent (E.g. the create record element works as expected). There is no error or warning even, the email is not sent.

Is there some kind of configuration I'm missing? (I have already set the deliverability to "All email")

In the help documentation, the following is stated:

At run time, the email isn’t sent until the interview’s transaction
completes. Transactions complete either when the interview finishes,
executes a Screen element, or executes a Wait element.

Does it mean an email cannot be sent using a scheduled flow at all?

enter image description here

The subflow:

enter image description here

Best Answer

Scheduled flows run as the Automated Process User as I had tested for this question

This means that the email in the email alert is sent as that Automated User with a sender email address of noreply@salesforce.com as noted here

This tends to get caught in spam filters or, as mentioned in the above link with gmail and your situation, completely blocked which can cause frustrations when testing as you noticed.

Related Topic