...
Code Block |
---|
cmsecureemail__Secure_EmailMessage__c oRecord = new cmsecureemail__Secure_EmailMessage__c(); oRecord.cmsecureemail__FromAddress__c = '+19171234567from@email.com'; oRecord.cmsecureemail__Recipients__c = '+12012345678to@email.com'; oRecord.cmsecureemail__HtmlBody__c = '068XXXXXXXXXXXXXXXHello Cloud Maven'; oRecord.RecordTypeId = Schema.SObjectType.eFAXSecure_EmailMessage__c.getRecordTypeInfosByDeveloperName().get('OutBound_eFAXOutbound').getRecordTypeId(); oRecord.cm_datatransfer__Parent_Record_Id__c = 'Record ID of the Parent Record'; oRecord.cmsecureemail__Reply_to__c = 'Record ID of the Parent Recordorgwide@email.com'; oRecord.cmsecureemail__Subject__c = 'Record ID of the Parent RecordTest Subject'; insert oRecord; |