Create Visualforce Email Template
sf_create_visualforce_email_templateCreates a Visualforce email template in Salesforce. Specify name, subject, recipient type, related entity, and HTML/plain-text bodies with Visualforce markup.
Instructions
Creates a Visualforce email template in the Salesforce org. Provide the template name, subject, recipient type (Contact, Lead, or User), related entity type, and the HTML body with Visualforce markup. A plain-text body is also required for email clients that don't support HTML.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| subject | Yes | Email subject line | |
| htmlBody | Yes | HTML body with Visualforce markup | |
| textBody | Yes | Plain-text version of the email body | |
| description | No | Description of the template | |
| templateName | Yes | API name for the email template | |
| recipientType | Yes | Type of recipient | |
| relatedEntityType | Yes | Related object API name, e.g. 'Account' |