I had task related to Email Message (email-to-case).
When an email arrives on closed case object, Then i was have to clone the old case object & create new record on that with exact data and also i have carry forward(copy) all email from old case object to new case object with open status of new case record.
When i copying all the email from Old case record to new case record i realize there are two fields in EmailMessage object named with RelatedToId,ParentId. But both fields are pointing to same case object.
Below image shows, email message object field names in workbench which has RelatedToId,ParentId
Below image shows, email i receive from in sales-force and created case record for this email[i config email-to-case for this ]
Both fields RelatedToId & ParentId has value of case object "5002C000005T93TQAS".
So i am curious what is the Different between RelatedToId vs ParentId In EmailMessage?