2

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

2
  • I see some references here to the Automated user being the sender and getting caught in spam filters. How are you testing that the email is sent? Mar 19, 2020 at 0:03
  • 1
    Oh My. It was the reason. But it was not even shown in my spam box, but when I used another email address I got the email. Mar 19, 2020 at 1:14

2 Answers 2

2

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 [email protected] 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.

1
  • It was not even in my spam box, I just tried using a different email and it worked. Mar 19, 2020 at 1:38
0

May be company information time zone is different. Set this time zone according to your time zone. setup --> company information --> set the time zone.

1
  • 1
    Welcome to SFSE. Please take a moment to read How to Ask and take the tour. The question already has an accepted answer related to spam filters. Also, the OP states that the rest of the flow is executed, so timezone is not an issue. Jul 28, 2022 at 14:42

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .