Email Template (PATCH)
Update an email template.The Health Cloud Starter and Life Sciences Commercial Admin Permission Sets are required for accessing this API. To know more, see Email Template and Intelligent Content.
Replace {yourInstance} with the My Domain name of your Salesforce org.
65.0
PATCH
-
File Input Payload Size:
- Overall API Payload Limit: The total request payload limit across APIs is 2 GB. When attaching single or multiple files as binary inputs using fileId, this 2 GB limit applies to the entire combined request payload.
-
Rate Limits:
- Bulk Presentation (POST and PATCH): The rate limit is 200 API calls per org per hour.
Properties
| Property Name | Type | Description | Required |
|---|---|---|---|
activatedDate | Date | Date when the email template becomes active. | Optional |
attachmentObjectTypes | List<String> | List of object types for attachments. | Optional |
automatedEmailActionType | String | Action type for automated emails. Possible values are:
| Optional |
automatedEmailContextType | String | Context type for automated emails. Possible values are:
| Optional |
bccEmailIdList | String | Email ID for BCC. | Optional |
communicationSubscriptionId | String | ID of the communication subscription associated with the email temaplate. | Optional |
contentDocumentId | String | ID of the content document ZIP containing the email files. You can pass this parameter if you wish to process the existing document record. You cannot provide this parameter when you pass the fileId. | Optional |
customFields | Object | Map of custom field names and their values for the email template. | Optional |
deactivatedDate | Datetime | Date when the email template becomes inactive. | Optional |
description | String | Description of the email template. | Optional |
emailSubject | String | Subject line of the email template. | Required, only if the file input is provided either as contentDocumentId or fileId. |
fileId | String | The multipart form field key that references the uploaded file for this presentation page. You can pass this parameter if you wish to process a new file that you will include in the request. You cannot provide this parameter when you pass the contentDocumentId as only one of the two are allowed. | Optional |
id | String | ID of the email template. Either the SourceSystemIdentifier or Salesforce ID of the LifeSciEmailTemplate record. | Required |
isActive | Boolean | Indicates if the email template is active (true) or not (false). | Optional |
isDefaultAutoEmailTemplate | Boolean | Indicates if this is a default automated email template (true) or not (false). | Optional |
isSubjectLineEditable | Boolean | Indicates if the email subject line is editable (true) or not (false). | Optional |
languages | List<String> | List of languages associated with the email template as per the ISO codes such as en_US, fr, es. | Optional |
name | String | Name of the email template. | Optional |
productId | String | ID of the associated product. | Optional |
replyToEmailAddress | String | Reply-to email address. | Optional |
replyToType | String | Type of reply-to address. Possible values are:
| Optional |
senderEmailFieldAPIName | String | API name of the sender’s email field. | Optional |
senderType | String | Type of sender for the email. Possible values are:
| Optional |
shouldIgnoreEmailConsent | Boolean | Indicates whether email consent should be ignored (true) or not (false). | Optional |
surveyId | String | ID of the associated survey. | Optional |
topics | List<String> | List of topics associated with the email template. TopicAssignment for Life Science EmailTemplate must be enabled before using this field. | Optional |