How to investigate emails sent by Flow Designer

Takumi Ando
Tera Contributor

Regarding the email, if it is sent from the "Send Email" action in Flow Designer, is there any way to determine which flow and what action it is?

 

The header of the mailbox contains the Sys ID of the executed flow, so we can see from which flow it was sent, but it is time-consuming to look at the contents of the flow and determine the number of the "Send Email" action from there.

1 REPLY 1

DUGGI
Giga Guru

Yes, when an email is sent from the "Send Email" action in Flow Designer, you can include metadata in the email headers to identify which flow and action it is from.

Here's how:

  1. Create a new flow variable:
  • Navigate to Flow Designer and open the flow that includes the "Send Email" action.
  • Click on the "Variables" tab and create a new flow variable.
  • Name your variable something like "Flow Name" or "Action Name".
  • Set the value of the variable to the name of the flow or action that is sending the email.
  1. Modify the email headers:
  • In the "Send Email" action, click on the "Advanced" tab.
  • Scroll down to the "Headers" section and click "Add".
  • In the "Name" field, enter "X-Flow-Name" or "X-Action-Name" (depending on which variable you created in step 1).
  • In the "Value" field, enter the value of the flow variable you created in step 1.
  1. Send the email:
  • Save and activate your flow.
  • When the "Send Email" action is triggered, the metadata you added in step 2 will be included in the email headers.
  • You can view the email headers to see which flow and action the email was sent from.

This solution uses a flow variable and email headers to include metadata in the email sent from the "Send Email" action in Flow Designer. By including this metadata, you can determine which flow and action the email is from by viewing the email headers.