When sales converts a Lead, its documents shouldn’t be left behind. This tutorial builds a record-triggered flow that moves the Lead’s CloudFiles folder into the new Account’s folder on conversion.
Scenario
Your team collects KYC files on the Lead. On conversion you want those files to live under Accounts/{Account Name}/ in the same storage, without manual drag-and-drop.
Prerequisites
Build the flow
IsConverted = true. Run asynchronously to avoid blocking the conversion transaction.AccountId. It returns the destination Resource ID.Test the automation
Convert a test Lead with files attached. Within ~30 seconds the files should appear under the Account folder. Check CloudFiles Events on the record for the ⚡ Resource Moved event.
Beyond this tutorial
The same pattern handles Case → parent Account consolidation and Opportunity → renewal hand-off. Swap the trigger and the Get Connected Folder target.
