Appiphony
 
  • Products
    • Merge Connect Document Generation
    • eSign Connect Docusign Integration
    • Parse Connect Document Parsing
    • Share Connect SharePoint Integration
    • Drive Connect Google Drive Integration
    • Experience Connect Experience Cloud Add-on
  • Company
  • Resources
    • Documentation Learn about our products
    • Blog Salesforce guides and tutorials
    • Customer Stories How our customers succeed
    • Videos Visit our YouTube channel
    • Company Get to know Appiphony
    • Careers View openings
    • PDO Services Build with Appiphony
    • PDO Customer Portal Access our customer portal
  • Pricing
Product Documentation Contact Us

Merge Fields

Drive Connect's Template Builder utilizes merge fields to pull data from Salesforce records and insert it into a Google Drive document.

Merge fields power document generation and enable Salesforce users to create up-to-date and accurate documentation. They pull predefined data already available inside a Salesforce record and its related records and insert them into a new Google document, allowing for the accurate and rapid generation of important documentation.

  1. Navigate to the Drive Connect application in Salesforce and select the Template Builder tab. Drive Connect app with Template Builder tab highlighted
  2. Create a new template or select an existing template to edit. Template Builder tab with templates folder edit UI highlighted
  3. On the merge field generator tab, click the Type drop-down and select [Record] Fields & Related Objects. Merge Field Generator tab within template editor with Type picklist visible and Fields and Related Objects option selected
  4. In the second drop-down menu, select a field or related object. Related objects will be located lower than the record field selections on the list. Select the related object and continue to scroll down until you find the field that you are looking for. Merge Field Generator tab within template editor with Function picklist highlighted and Conditional Logic option selected
  5. Once you have made your selection, copy and paste it into the appropriate section of your merge template. Merge Field editor with generated merge field pasted into template

Lookup Merge Fields

  1. Navigate to the Drive Connect application in Salesforce and select the Template Builder tab.Drive Connect app with Template Builder tab highlighted
  2. Create a new template or select an existing template to edit. Template Builder tab with templates folder edit UI highlighted
  3. On the merge field generator tab, click the Type drop-down and select [Record] Fields & Related Objects. Merge Field Generator tab within template editor with Type picklist visible and Fields and Related Objects option selected
  4. In the second drop-down, select a lookup from the field section denoted by a right-facing karat (>). Field or Related Object picklist with lookup field selected
  5. A third dropdown will appear. From here, select the desired field or select another lookup and select the field from the next dropdown that appears. Field or Related Object picklists with field selected in the third picklist
  6. Once you have made your selection, copy and paste it into the appropriate section of your merge template. Generated merge field pasted into body of template

Merge Fields in File Names

Adding merge fields to a file’s Generated Name field will enable generated documents to have names that include Salesforce data. This can help you identify generated documents when viewing them outside of Salesforce.

  1. Navigate to the Drive Connect application in Salesforce and select the Template Builder tab. Drive Connect app with Template Builder tab highlighted
  2. Create a new template or select an existing template to edit. Template Builder tab with templates folder edit UI highlighted
  3. On the merge field generator tab, click the drop-down and select [Record] Fields & Related Objects. 
  4. In the second drop-down, select a field, lookup, or related object. Related objects will be located lower than the record field selections on the list. Select the lookup or related object and continue to scroll down until you find the field that you are looking for. 
  5. Once you have made your selection, copy and paste it into the generated name field of the template editor. Merge field pasted into Generated Name input at top of editor

Date of Merge Function Fields

Template builders can add merge fields that reference date and date/time to merge templates. By adding date and date/time merge fields to a merge template, template builders can ensure that date-sensitive documentation always contains the correct date to avoid possible customer service and/or legal disputes.

  1. Navigate to the Drive Connect application in Salesforce and select the Template Builder tab. Drive Connect app with Template Builder tab highlighted
  2. Create a new template or select an existing template to edit. Template Builder tab with templates folder edit UI highlighted
  3. In the merge field generator, select the Type drop-down and select Functions.Merge field generator with Functions option selected
  4. In the Function drop-down, select Date of Merge. Merge field generator with Date of Merge selected in Function picklist
  5. In the Day Offset field, enter a value greater than or equal to zero. Day offset field set to 30 days after date of merge
  6. In the Date Format dropdown, select the format that best fits your use case. Date format picklist with three options visible
  7. Once you have formatted your date or date/time merge field, copy and paste it into the appropriate section of your merge template. Merge field pasted into due date section of invoice template

Getting Started

  • Introduction
  • Installation & Setup
  • FAQs
    • How do I update Drive Connect?
    • Can I trial Drive Connect?
    • How is Drive Connect used in a sandbox environment?
    • How do I open a support ticket with the Drive Connect team?
    • Can I provide the Drive Connect team with feedback?
    • Why Can't I Preview Files in Safari?
    • How do I sign out of my Google account in Drive Connect?
    • How do I manage Google account access for Drive Connect?
    • How do I grant access to folders in Google Drive?
    • What are the Drive Connect remote sites?
    • How does Drive Connect use Google OAuth 2.0 Scope to access Google APIs?
    • How do I activate Drive Links on mobile devices?
    • Can I migrate Google Drive URLs to Drive Connect Default Record Folders?
    • Why are tabs missing from the Drive Connect app?
    • Can I automatically assign licenses and permissions to new Drive Connect users?
    • What can I do if Licensing & Permissions does not load?
    • What should I do if I encounter "Google picker error – The API developer key is invalid"?
    • What should I do if renaming a custom object does not reflect the correct name in related Object picklists?
    • How do I fix "Managing Drive Connect Payments Error – Remote Site Activation Needed"?
    • Why is "Sign in with Google" not working in Safari?
    • Why isn't my Google profile picture visible in Drive Connect?
    • How to Leave an AppExchange Review for Drive Connect
    • Why are my Schedule-Triggered Flows not working?
    • Issues installing Drive Connect: Dynamic Imports are Not Allowed
    • Why is Document Generation no Longer Supported?
  • Release Notes

Features

  • File Management
    • Linking
    • Viewing
    • Downloading
    • Renaming
    • Unlinking
    • Embedding
    • Sharing & Permissions
    • Saving to Salesforce
    • Uploading to Drive
    • Emailing Files
    • Experience Cloud
  • Folder Management
    • Linking
    • Viewing
    • Renaming
    • Unlinking
    • Sharing & Permissions
    • Content Folders
    • Default Folders
  • Automation
    • Automation Setup
    • Creating Automations
    • Automating File Upload
    • Updating Files
    • Automating Folders
    • Automating Files
    • Destination Locations
    • Decision Trees
    • Publishing Platform Events
    • Updating Folders
  • Document Generation (Legacy)
    • Template Builder Tab
    • Root Folders
    • Merge Templates
    • Conditional Logic
    • Merge Fields
    • Related Lists
    • Current User Fields
    • Tables
    • Generating Files
    • Updating Generated Files
    • Increasing File Size Limit
    • Limitations

Integrations

  • Merge Connect
    • Merging in the Drive Links Component
    • Merging in the Drive File Component
    • Importing Existing Drive Connect Templates
    • Merging with Flows
  • Experience Connect
    • Sharing Files & Folders Through Experience Cloud
    • Uploading through the Files Component
    • Uploading through the File Uploader Component

Billing

  • Purchase
  • Manage
    • Licenses
    • Tiers
    • Term
    • Payment Info
    • Cancellation

Products

  • eSign Connect
  • Parse Connect
  • Share Connect
  • Merge Connect
  • Drive Connect
  • Experience Connect

Pricing

  • Drive Connect Pricing
  • eSign Connect Pricing
  • Share Connect Pricing
  • Merge Connect Pricing
  • Parse Connect Pricing
  • Experience Connect Pricing

Resources

  • Documentation
  • Blog
  • Customer Stories
  • Videos
  • Company
  • Careers
  • PDO Services
  • PDO Customer Portal

© 2026 Appiphony, LLC. All rights reserved.

Various trademarks held by their respective owners.

Manage Cookies • Policy & Terms
Loading Comments...