I am trying to create a flow that will 'reparent' an Email Message record to a different Case record. As it is not possible to reparent/change the ParentID of an Email Message once it has been created, I am trying to create a clone of the Email Message record and its associated attachments, then relate this new record to the Case.
For example, there is a Case (C1) that has an Email Message (EM1) with 2 attachments related to it. I want to create a clone of EM1 record (EM2) and relate the attachments from EM1 to EM2, then relate EM2 to the different Case (C2).
The Email Message has come in via Email-To-Case.
I originally thought that I would need to reference the ContentDocument/ContentDocumentLink records related to the Email Message Attachment (these act as a junction object between the attachment and the related record) but I read an article online that suggests that Email Messages coming in from E-T-C do not behave in the same way as other Email Message records, in that they do not have ContentDocument/ContentDocumentLink records. I tried to reference them in the flow but no records were returned, so believe this is the case.
Has anyone been able to achieve this or understand how I could reference/clone the Attachments on an Email Message in a flow?