function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
AntonPavlovAntonPavlov 

How transfer all records associated with the EmailMessage child case to parent case?

ShirishaShirisha (Salesforce Developers) 
Hi Anton,

Greetings!

You need to create the Apex trigger to update the Parent Id of the EmailMessage to the parentCase as suggested in the below:

https://salesforce.stackexchange.com/questions/32134/re-parenting-an-email-to-another-case

https://developer.salesforce.com/forums/?id=9060G0000005YRMQA2

Kindly mark it as best answer if it helps so that it can help others in the future.

Warm Regards,
Shirisha Pathuri