The following are static methods for Cases.
-
generateThreadingMessageId(caseId)
Returns an RFC 2822-compliant message identifier that contains information used to match the email and its replies to a case. -
getCaseIdFromEmailHeaders(headers)
Returns the case ID corresponding to the specified email header information, or returns null if none is found. -
getCaseIdFromEmailThreadId(emailThreadId)
Returns the case ID corresponding to the specified email thread ID. (Deprecated. Use getCaseIdFromEmailHeaders and EmailMessages.getRecordIdFromEmail instead.)