Subflow Losing Current User Context
I have a subflow that builds a list of email recipients and then sends an email. The recipient list is being populated correctly, but the Send Email step fails with “No sender found” when I use Current User/Current Account as the From value.
Why is the current user not available inside the subflow, and how can I keep the user context?
Comments
-
Hey there,
If the subflow is being called using Start Linked Flow Async, this behavior is expected. Async flows run in the background and do not retain the initiating user's context, so the subflow runs as SYSTEM instead. The step's design in the flow designer will look like the below image:

When ran, will output "SYSTEM":

If you need to retain the current user context, use Run Sub Flow instead.

When ran, will output the current user email address:

Alternatively, if the flow needs to remain asynchronous, pass the current user's email into the subflow as an input and use that value as the sender in the Send Email step.
Regards,
Vinh Tran | Decisions Support
0
Howdy, Stranger!