A pipeline of multiple Batch Executables is built to migrate Salesforce Files (for a particular object identified by the FirstPublishLocationId field) and their associated links to a remote org. The process begins by migrating ContentVersion data while storing the source identifiers in custom fields, followed by migrating ContentDocumentLink to re-establish the links. Additional batches apply the same pattern to other linked objects.
Overview
General Use Case
Use a Pipeline with sequential #Batch Executables to migrate Salesforce Files and rebuild their links in a target org, using VLOOKUP and External IDs to maintain data relationships when re-establishing ContentDocumentLink associations.
Video Demo
Prerequisites
Target Org Custom Fields
Account.SourceSystemID__cText(18)ContentVersion.SourceSystemID__cText(18)ContentVersion.ContentDocumentSourceSystemID__cText(18)Required Permission
Ensure that the authenticated user on both the source and target connections has the "Query All Files" permission enabled, either through an assigned permission set or their profile.

Downloadable Executables
Walkthrough
New Executable

Retrieve

Mapping
