/
Required Fields For Secure Email

Required Fields For Secure Email

Label

API Name

 

From Address

cmsecureemail__FromAddress__c

 

Recipients

cmsecureemail__Recipients__c

Comma separated email addresses in case of multiple recipients.

HTML Body

cmsecureemail__HtmlBody__c

 

Parent ID

cmsecureemail__Parent_Record_Id__c

Record ID on which you want the Secure Email to get linked.

Record Type ID

RecordTypeId

 

Reply to Email address

cmsecureemail__Reply_to__c

Should be Org wide email address

Subject

cmsecureemail__Subject__c

 

Sample Apex Code Snippet to create a Secure Email record

 

cmsecureemail__Secure_EmailMessage__c oRecord = new cmsecureemail__Secure_EmailMessage__c(); oRecord.cmsecureemail__FromAddress__c = 'from@email.com'; oRecord.cmsecureemail__Recipients__c = 'to@email.com'; oRecord.cmsecureemail__HtmlBody__c = 'Hello Cloud Maven'; oRecord.RecordTypeId = Schema.SObjectType.Secure_EmailMessage__c.getRecordTypeInfosByDeveloperName().get('Outbound').getRecordTypeId(); oRecord.cm_datatransfer__Parent_Record_Id__c = 'Record ID of the Parent Record'; oRecord.cmsecureemail__Reply_to__c = 'orgwide@email.com'; oRecord.cmsecureemail__Subject__c = 'Test Subject'; insert oRecord;

Related content

Send Secure Email Post Installation Guide
Send Secure Email Post Installation Guide
More like this
How to Setup Batch to Get Latest Status of Secure Email
How to Setup Batch to Get Latest Status of Secure Email
More like this
Secure Email Statuses
Secure Email Statuses
Read with this
Secure File Template- Steps for Whitelabeliing
Secure File Template- Steps for Whitelabeliing
More like this
Why "Secure Email" Powered by Paubox
Why "Secure Email" Powered by Paubox
Read with this
Add File Tags and Create/Update Text/Email Template
Add File Tags and Create/Update Text/Email Template
More like this