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 pdf 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 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 pdfs 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 1\ 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 example a sales rep merges a quote, terms sheet, and case study into a single proposal pdf to send to a prospect—right from an opportunity screen flow 2\ 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 example when an hr record reaches "ready to offer," the system automatically merges the offer letter, nda, and job description into a single hiring packet 3\ scheduled flows for batch document compilation run scheduled flows that periodically merge documents (daily, weekly, monthly) for operational tasks example a scheduled flow merges all invoices generated during the week into a single summary pdf for monthly archiving or email delivery 4\ 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 example in a service onboarding flow, once docusign completes a contract, merge the signed file with the onboarding checklist and welcome doc 5\ 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 example a legal team merges uploaded draft contracts from sharepoint into one file before pushing to salesforce for final review 6\ dynamic file assembly based on related records use flow logic to dynamically gather and merge files based on related objects or metadata conditions example for a project record, gather all linked project phase reports, then merge and attach them as a consolidated report for clients 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