You are here:
Send Emails with a Flow Using Text Templates
Text templates create reusable email content with dynamic merge fields from any record. Send emails to any address and reuse the same template across multiple flow actions. This approach offers more flexibility than the standard Send Email body field.
Required Editions
| View supported editions. |
| User Permissions Needed | |
|---|---|
| To open, edit, create, activate or deactivate a flow using all flow types, elements, and features available in Flow Builder, including Einstein and Agentforce for Flow: | Manage Flow |
Note If you want to send an email using the email body in the Send Email action, see
Send an Email from a
Flow.
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.
- Send an Email Using a Text Template Flow Resource Example
Use the Send Email action to send an email to your customers each time the status of their order changes using a text template flow resource. For example, your sales reps don't have time to keep sending emails to customers to update them on their orders. You want to email the customers automatically with a flow.
Create the Flow
Create the flow that sends your email.
-
Open the Flows list view.
- From Setup, in the Quick Find box, enter Flows, and then select Flows.
- From the Automation app, select the Flows tab.
- From the Flows tab in any Lightning app, click the actions menu and select Open Flow.
-
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..
- Configure the Start element if it's needed for the flow type.
Create and Configure the Text Template
Create and configure the Text Template resource in your flow.
-
In your flow, click
.
The flow Toolbox opens. - Click New Resource.
- For Resource Type, click Text Template.
- For API Name, enter a name for your text template. For example, EmailBody.
- Enter your content into the Body text field and add any needed formatting.
- To add merge fields, click Insert a resource... and search for and click the resource that holds the field you want to add. For example, click Triggering Application and then Parent Name.
Configure the Send Email Action and Rest of Flow
Configure the Send Email action within your flow and finish setting up your flow.
-
In your flow, click
, and search for and click Send Email.
- For Label, enter a name for your Send Email element. For example, Email Parent of Accepted Applicant. Let the API name autofill.
-
Configure the recipient information by entering a value or selecting a resource for
Recipient Addresses or Recipient ID. For example, click Triggering
Applicant__c and then click Parent Email.
In this example, Applicant is a custom object.
- Add your text template resource. Click Compose Email Content.
- For Subject, enter a subject for your email, or select a text template that you created for your subject.
- For Body, search for and click the name of your text template. For example, click EmailBody.
- For the Rich-Text-Formatted Body value, click True.
- Save and name the flow.
- To make sure that the flow works as expected, debug and test it by using different scenarios.
- To start sending emails, activate the flow.
Did this article solve your issue?
Let us know so we can improve!

