How are email ids linked to emailmessage Records?

How are email ids linked to emailmessage Records?

Each ID is linked to an EmailMessageRelation record, which represents the relationship between an email message and a Contact, Lead, or User record. Indicates whether the object has been moved to the Recycle Bin (true) or not (false). Label is Deleted. The address that originated the email. The sender’s name. The body of the email in HTML format.

How is an emailmessage record created in Salesforce?

If your organization uses Email-to-Case, a case is created when an email is sent to one of your company’s addresses. The email, which is related to the case by the ParentID field, is stored as an EmailMessage record. When users view the email, they see the EmailMessage record.

What does open task mean in emailmessage in Salesforce?

Usually represents an open task that is created for the case owner when a new unread email message is received. A string array of IDs for contacts, leads, and users who were sent a blind carbon copy of the email message.

How is access to emailmessage determined in customer portal?

Customer Portal users have read access to EmailMessage if the value for the ParentID field is associated with a case. Otherwise, access is determined by sharing access of the associated task. update () is supported only on records whose Status is Draft.

When do you use emailmessage in Salesforce?

“EmailMessage” represents an email in Salesforce. EmailMessage is only available for organizations that use Email-to-Case or Enhanced Email, which is automatically enabled for most customers. Customer Portal users have read access to EmailMessage if the value for the ParentID field is associated with a case.

What does the ID of the current emailmessage mean?

RelatedToIds are polymorphic. Polymorphic means a RelatedToId is equivalent to the ID of a related object. ID of the inbound or outbound EmailMessage the current EmailMessage is a reply to. It’s not possible to reply to a message whose Status is Draft.