Overview

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.

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

Account.SourceSystemID__cText(18)
ContentVersion.SourceSystemID__cText(18)
ContentVersion.ContentDocumentSourceSystemID__cText(18)

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.

Screenshot 2026-05-04 181740

Downloadable Executables

DownloadCurrent.OrgB.Files.Migration

Walkthrough

New Executable

f1c73332b52b22ccd374b5e72b119be6

Retrieve

Screenshot 2026-05-04 172728

Mapping

Screenshot 2026-05-04 172828