Test Drive
Document Generation Test Drive
Merge Documents
introduction in this test drive, you will explore how cloudfiles document generation, integrated with salesforce flows, can automatically merge multiple salesforce files into a single pdf document this setup allows users to upload multiple files into a record, select specific files for merging, and generate a single consolidated file the merged output is automatically saved as a child result document record note the file types supported for merging are pdf, docx, images (png and jpeg) all of this is powered by salesforce flows and the flow actions from cloudfiles the test drive takes less than a minute to complete instructions follow the steps below to test the setup 1 go to the split or merge documents tab and create a new record no additional input is required — just save it 2 upload a few files using the standard files related list on the record 3 click the ' merge files' button this will launch a screen flow 4 from the screen, select the files you want to merge and click ' merge' 5 cloudfiles will combine the selected files and generate a new result document record 6 you can find the final merged file attached to this new child record implementation this test drive is implemented using a salesforce screen flow, powered by the merge documents (sync) docid\ akbaey1ytn5miwrzxe1tl flow action the screen flow performs the following steps collects all contentdocumentids from files attached to the parent record displays a list of those files on a screen where users can select which ones to merge passes the selected content documents to the merge documents (sync) docid\ akbaey1ytn5miwrzxe1tl action retrieves the final merged file (as a contentversion ) creates a result document child record and attaches the merged pdf to it beyond this test drive the merge documents (sync) action from cloudfiles isn’t limited to just this test drive—it can be reused across a variety of salesforce flows and automation scenarios whether you're working with screen flows, record triggered flows, or scheduled flows, this action can help automate document packaging tasks across teams below are few ways this action can be leveraged in broader enterprise use cases screen flows for on demand document packaging use the merge action in guided screen flows where users interactively select files to merge, rename output, or trigger downstream steps auto merge on record save (record triggered flows) trigger the document merge automatically when certain conditions are met—like when a record reaches a specific stage or status scheduled flows for batch document compilation run scheduled flows that periodically merge documents (daily, weekly, monthly) for operational tasks post signature document bundling after a contract is signed via esignature, use the merge action to combine the signed contract, terms, and client documents into a single client archive package merge external files before upload or storage combine files from external sources (e g , sharepoint, google drive) into a single document before uploading to salesforce or an external archive dynamic file assembly based on related records use flow logic to dynamically gather and merge files based on related objects or metadata conditions with its synchronous execution and tight salesforce integration, the cloudfiles merge documents (sync) docid\ akbaey1ytn5miwrzxe1tl provides a fast, reliable way to automate multi file operations—reducing manual effort while improving document accessibility and consistency