Create 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.
- Resource
-
/connect/life-sciences/commercial/bulk-email-template
- Resource example
-
https://yourInstance.salesforce.com/services/data/v68.0/connect/life-sciences/commercial/bulk-email-template
- Available version
- 65.0
- HTTP methods
- POST
- Request body for POST
-
{ "emailSubject": "Welcome", "contentDocumentId": "069xx0000004CAeAAM", "name": "Welcome Email", "activatedDate": "2025-06-03T15:00:00.000Z", "senderType": "SYSTEM", "senderEmailFieldAPIName": "noreply@company.com", "replyToType": "USER", "replyToEmailAddress": "support@company.com", "id": "external-id", "deactivatedDate": "2025-01-01T00:00:00.000Z", "description": "This is a welcome email template used for onboarding new users.", "attachmentObjectTypes": [ "PDF", "DOCX" ], "customFields": [ { "fieldName": "user", "fieldValue": "admin" }, { "fieldName": "standard", "fieldValue": "user" } ], "languages": [ "en", "es" ], "isActive": true, "surveyId": "sample-survey-id", "productId": "sample-product-id", "communicationSubscriptionId": "sample-comm-subscription-id", "topics": [ "Onboarding", "User Engagement" ], "shouldIgnoreEmailConsent": false, "isSubjectLineEditable": true, "bccEmailIdList": "bcc@example.com", "automatedEmailContextType": "ProviderVisit", "automatedEmailActionType": "Create", "isDefaultAutoEmailTemplate": false } - Properties
-
- Response body for POST
- Create Email Template Output