Loading
Prepare for Email to Become the Default Login ExperienceRead More
Intermittent freezing when using using certain browser versionsRead More
Automate Your Business Processes with Salesforce Flow
Send an Email from a Flow Using an Existing Email Template

Send an Email from a Flow Using an Existing Email Template

Use an existing email template with the Send Email action to send consistent, reusable email content from any flow type. Email templates support merge fields from the recipient, their organization, and sender records, and can be reused across multiple flows.

Required Editions

View supported editions.
Note
Note If you want to send an email to a recipient by adding your email content directly in the Send Email action see Send an Email from a Flow.

Before you begin, create the email template you want to use. To learn about creating email templates, see Create an Email Template in Lightning Experience

Important
Important To send email from Salesforce, the Send Email action in Salesforce Flow requires domain-level and user-level email verification. Email delivery fails if either the user's email address or the email-sending domain is unverified. See Requirements to Send Email from Salesforce.
Note
Note If you're following along in an existing flow, make sure the Send Email action version is set to 1.0.1. To prevent broken email template ID references when you deploy a flow from one org to another, use the Email Template Name instead of the Email Template ID. To use an Email Template Name, change the Action Version in the Send Email action to 3.0.1 or later.

After you create your email template, add a Send Email action to your flow and configure it to use that template.

  1. Open the Flows list view.
    • From the Automation app, select the Flows tab.
    • From the Flows tab in any Lightning app, click the actions menu and select Open Flow.
    • From Setup, in the Quick Find box, enter Flows, and then select Flows.
    Note that the Automation app and Flows tab options don't require Setup access.
  2. Create the type of flow that you want to use.
    • From the Automation app, click New, then click the category, and then the flow type. For example, to create a record-triggered flow, click Triggered | Record-Triggered Flow.
    • From Setup, click New Flow, then click the category, and then the flow type. For example, to create a screen flow, click Screens | Screen Flow..
  3. Configure the Start element if needed for the flow type.
  4. Add and configure a Send Email action element.
    1. Click Add element plus icon, and search for and click Send Email.
    2. For Label, enter a name for your Send Email element. For example, Send New Contact Email. Let the API name autofill.
    3. Configure the recipient information by entering a value or selecting a resource for Recipient Addresses or Recipient ID. For example, in Recipient Addresses, click Triggering Contact, and then search for and click Email.
    4. Add your email template. Click Use Email Template.
    5. To use an Email Template Name, set the Action Version for the Send Email action to 3.0.1 or later, and select Your Email Template Name from the Email Template Name field.
    6. If you are on action version 2.0.1 or lower, search for and select Your Email Template Name in the Email Template ID field.
      Send Email Action element configuration with an email template selected.
    7. Optionally, add functionality to your email such as logging the email to a record or sending an attachment.
      For all options and more information, see Flow Core Action: Send Email.
  5. Save and name the flow.
  6. To make sure that the flow works as expected, debug and test it by using different scenarios.
  7. To start sending emails, activate the flow.
    Flow with a Send Email action configured
    Important
    Important After migrating flows, always review and reconfigure the Send Email action to reference the new record IDs in the target Salesforce org. This step is crucial to avoid broken references and to make sure that email delivery functions correctly.
  • Send Follow-Up Email Using an Email Template Example
    Walk through a complete example of a record-triggered flow that automatically sends a follow-up email to a case contact when a case is closed. This example uses the Send Email action with an existing email template that includes recipient merge fields.
 
Loading
Salesforce Help | Article