Newer Version Available
Email Template (POST)
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
-
1/connect/life-sciences/commercial/bulk-email-template - Resource example
-
1https://yourInstance.salesforce.com/services/data/v66.0/connect/life-sciences/commercial/bulk-email-template - Available version
- 65.0
- HTTP methods
- POST
- Request body for POST
-
1{ 2 "emailSubject": "Welcome", 3 "contentDocumentId": "069xx0000004CAeAAM", 4 "name": "Welcome Email", 5 "activatedDate": "2025-06-03T15:00:00.000Z", 6 "senderType": "SYSTEM", 7 "senderEmailFieldAPIName": "noreply@company.com", 8 "replyToType": "USER", 9 "replyToEmailAddress": "support@company.com", 10 "id": "external-id", 11 "deactivatedDate": "2025-01-01T00:00:00.000Z", 12 "description": "This is a welcome email template used for onboarding new users.", 13 "attachmentObjectTypes": [ 14 "PDF", 15 "DOCX" 16 ], 17 "customFields": [ 18 { 19 "fieldName": "user", 20 "fieldValue": "admin" 21 }, 22 { 23 "fieldName": "standard", 24 "fieldValue": "user" 25 } 26 ], 27 "languages": [ 28 "en", 29 "es" 30 ], 31 "isActive": true, 32 "surveyId": "sample-survey-id", 33 "productId": "sample-product-id", 34 "communicationSubscriptionId": "sample-comm-subscription-id", 35 "topics": [ 36 "Onboarding", 37 "User Engagement" 38 ], 39 "shouldIgnoreEmailConsent": false, 40 "isSubjectLineEditable": true, 41 "bccEmailIdList": "bcc@example.com", 42 "automatedEmailContextType": "ProviderVisit", 43 "automatedEmailActionType": "Create", 44 "isDefaultAutoEmailTemplate": false 45} - Properties
-
- Response body for POST
- Create Email Template Output