You need to sign in to do that
Don't have an account?
Michael O'Malley
What connects an EmailMessage to a FeedItem?
Is there any way to tell to which FeedItem an EmailMessage belongs? The ParentId field on EmailMessage shows to which Case an EmailMessage belongs, but I can't find any way to figure out the parent FeedItem of the email message via Apex code or SOQL.
The linkage must exist somewhere because the Case feed knows where to display a given email message. Maybe the connection is hidden in an object that isn't exposed to Apex developers?
A similar question was asked here and never answered - https://developer.salesforce.com/forums#!/feedtype=SINGLE_QUESTION_SEARCH_RESULT&id=9062I000000QvsdQAC
The linkage must exist somewhere because the Case feed knows where to display a given email message. Maybe the connection is hidden in an object that isn't exposed to Apex developers?
A similar question was asked here and never answered - https://developer.salesforce.com/forums#!/feedtype=SINGLE_QUESTION_SEARCH_RESULT&id=9062I000000QvsdQAC
Greetings!
I don't think there is any direct relationship between the FeedItem and EmailMessage.Also,I have checked all the documentations related to these SObjects but couldn't find anything.
However,it might be possible that these are connected with the ParentId of both Objects.
Kindly mark it as best answer if it helps so that it can help others in the future.
Warm Regards,
Shirisha Pathuri