---
isPublished: true
knowledgeIndex: false
hidden: true
noindex: true
template: "page.peb"
title: "Render Email Template Action Flow Reference"
description: "Inputs, outputs, transaction effects and troubleshooting for Render Email Template Action in Salesforce Flow."
contentType: "reference"
audience: "admin,developer"
---

# Render Email Template Action

Render a Salesforce email template and return its body text.
The namespaced Apex action name is `rooms__RenderEmailTemplateAction`.

## Transaction summary

| Effect | Behavior |
| --- | --- |
| API callout | No external API callout is made. |
| Record writes | No record is inserted, updated or deleted. |
| Background work | No queued work is started. |
| Platform event | The action does not directly publish a platform event. |
| Email | The action does not send email. |

This action renders email content only. It does not send the email. Use a separate send action after checking the returned bodies.

## Inputs

Required describes the Flow input setting. Additional conditions are stated in the guidance.

| API name | Flow label | Required | Default or guidance |
| --- | --- | --- | --- |
| `emailTemplateID` | Email Template ID | No | The Salesforce email template ID. |
| `whoID` | Recipient ID (Lead or Contact ID) | No | The Contact or Lead used for recipient merge context. |
| `whatID` | What ID (Entity ID) | No | The related record used for template merge context. |

## Outputs

| API name | Flow label | Meaning |
| --- | --- | --- |
| `success` | Success | Whether the action reported success. Check this value before continuing. |
| `message` | Error Message | Result details or an error. Read this value with Success. |
| `htmlBody` | HTML Body | Rendered HTML email body. |
| `plainTextBody` | Plain Text Body | Rendered plain-text email body. |

## Configure the Flow

1. Supply Email Template ID and the required recipient and related-record context.
2. Store Success, Error Message, HTML Body and Plain Text Body.
3. Use the bodies in a separate email action only after Success equals `true`.

Confirm the Flow user's action access and the required access to the referenced records.
Review the configured Salesforce API connection user's access when the action makes a callout.
Connect the action's Fault path.

## Troubleshooting

**Template rendering fails.** Confirm the template ID, compatible recipient type and related-record context.

**No email was received.** Rendering does not send email. Review the separate send step.

Confirm that the action and its fields exist in the installed package.
See the [Flow action index](/content/build/flows/index.md) for related actions and transaction guidance.
