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
Michael_MantouvalosMichael_Mantouvalos 

Migrate attachments and files from one object to another

Hi all,

I need to migrate some files and attachments from 8 old Objects to 2 new Objects in salesforce. I have two types of files to migrate, Content Version files and Attachments. We have a link between the old and new objects and would like to move the files without risking losing any of them. Can you please advise me on how I can do that? I have tried several methods we found online but none of them works. Which is the SF standard file/attachment standard migration method?
Thank you.

ShirishaShirisha (Salesforce Developers) 
Hi Michael,

Greetings!

You would need to use Dataloader by updating the parentId of the attachments to the new Object's recordId.

Please follow the steps given in the below thread:

https://trailblazers.salesforce.com/answers?id=90630000000h3Y2AAI

Please mark it as best answer if it helps you to fix the issue.

Thank you!

Regards,
Shirisha Pathuri