Bulk Document Generation

Mass Merge / Bulk Document Generation

  1. Configuration Steps
  2. End-User Workflow
  3. Troubleshooting and Support



Understanding the Bulk Generation URL

The custom button uses a specific URL structure to invoke the bulk generation flow. The parameters in the URL define which template to use and how to name the output files.

URL Parameter Key

Description

Example Value

SFDCDocumentTemplateId

The 18-digit SFDC Record ID of the DRTE Document Template to be used for generation.

a01XXXXXXXXXXXXXXX

SFDCObjectAPIName

The API Name of the Salesforce Object (e.g., standard or custom) where the button is placed.

Invoice__c or Account

SFDCDocumentFileNamePrefix

A prefix used to name the generated document files.

Bulk_Invoice_






Generic URL Structure:

/flow/drte_ext/GenerateMassDocument?SFDCDocumentTemplateId=[DocumentTemplateId]&SFDCObjectAPIName=[SFDCOBJectAPiName]&SFDCDocumentFileNamePrefix=[NameOfFileToSave]


Important Note: The URL key names (e.g., SFDCDocumentTemplateId) must be used exactly as shown for the feature to function correctly.



Step 1: Create the Custom List View Button

    1. Label: Provide a user-friendly label (e.g., Generate Documents or Bulk Invoice Generation).
    2. Name: Enter the API name (e.g., Generate_Documents).
    3. Display Type: Select List Button.
    4. Ensure "Display Checkboxes (for Multi-Record Selection)" is checked.
    5. Content Source: Select URL.
    6. Content: Paste the generic URL structure and replace the bracketed values with your specific configuration details (e.g., inserting your template ID).

Document Template id is the SFDC record id of your rich text button/document template related to the object you selected, in this example we are using document template id of ‘Invoice Document’ doc template.

Step 2: Add the Button to the List View Layout

The Mass Merge feature is now configured and ready for end-user deployment.

End-User Workflow - Mass Merge / Bulk Document Generation

The bulk generation process is initiated by the end-user directly from a standard or custom List View.

Monitor Processing: The user is immediately redirected to a Batch Record screen. This record serves as the central log for the background process.





Access Documents: All generated PDF documents are automatically saved to the Files related list of their respective records (e.g., the generated Invoice PDF will be saved to the related Invoice record).

Redirecting you to the article... Click here if you are not redirected automatically.