When did email message become a standard object?
Salesforce introduced email message as its own standard object in Summer 16. FINALLY, it is no longer a task in Salesforce! Now, that it is its own object, you can add custom fields, write validation rules, triggers, process builder and flows. The email addresses are stored as text fields with no association to the user or contact or lead.
Where are email records stored in standard object?
The new email message standard object introduced in Summer 16 stores email message records in its own object, removed from the task object. In the standard object, all the email information is now parsed and stored in individual fields – to address, from address, CC address, BCC address, subject, email body and attachment.
How to create email message object in process builder?
Double click on the flow element box to set it as the start element. If set properly, this will show with the green down arrow. C. Next, we will create a Record Update flow element that will update the EmailMessage object where the Id equals the variable varEmailMessageID. Once found, we will update the Contact field with the variable varContactID.
How to create custom email fields in Salesforce?
1.Create a custom lookup field called “Contact” to the Email Message object. For those using Salesforce Classic, you can create custom fields by going to Setup | Customize | Email | Email Message | Fields. Don’t forget to provide a description so you and other/future admins know what this custom field is used for.
How to send emails in singleemailmessage class?
SingleEmailMessage class contains methods for sending emails. SingleEmailMessage contains below methods. setBccAddresses(String[]) setCcAddresses(String[]) setCharset(String) setDocumentAttachments(ID[]) setFileAttachments(EmailFileAttachment[])
How are email addresses stored in an object?
The email addresses are stored as text fields with no association to the user or contact or lead. There is a junction object called EmailMessageRelation that holds the FromAddress, ToAddress, CCAddress, BCCAddress for a given EmailMessageID.