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

Conditional Logic

Users can create more complex merge templates with Conditional Logic. Conditional Logic allows you to use one or more Fields and Operators to create blocks of text that can be hidden or shown depending if the parent record meets the criteria. This could allow you to make contracts and documentation for clients where different legal language may need to apply depending on the record a user is working with.

  1. Navigate to the Merge Connect application in Salesforce and select the Merge Templates tab.
  2. Click New to create a new template.
  3. Select any of the available file types, then select Next to create a new template using any of the indicated options.
    Please Note: To see Google File Types in the New Template modal, you will need to enable Google File Generation in Setup. For more information please see here.
  4. In the Merge Field Generator tab, click the Type dropdown, and select Functions.
  5. From the Function dropdown, select Conditional Logic. This will bring up the criteria section.
  6. In the Field dropdown, select the field you are comparing data against.
  7. From the Operator dropdown, select an operator.
  8. In the Value field, enter a value.
  9. Copy and paste the conditional logic statement into the body of the document.
    Please Note: For a PowerPoint Presentation or Excel Spreadsheet, you will need to copy and paste the merge fields into your slide in PowerPoint or Excel. You will then need to re-upload these files to see your newly added merge fields.
  10. Add any conditional text or merge fields into the designated area. Once completed, click Save.
  11. Below is an example demonstrating merging conditional logic merge fields.
  12. Additional supported conditional logic output values are:
    • Tables
    • Bulleted Lists
    • Look-up Merge Fields
    • Related List Merge Fields

Please Note: The following are not supported:

  • Conditional logic within conditional logic
  • Related lists as the conditional logic
  • Conditional logic with related lists as the output values when surrounded by text
  • Conditional logic in the Generated Name
  • Images with text within conditional logic only in a PowerPoint presentation
  • Conditional logic in Excel Spreadsheet or Google Sheets

Getting Started

  • Introduction
  • Installation & Setup
  • FAQs
    • How do I update Merge Connect?
    • Why Can't I Establish an Inbound Connection?
    • Can I trial Merge Connect?
    • How is Merge Connect used in a sandbox environment?
    • How to Generate a Public Image in Salesforce?
    • How do I open a support ticket with the Merge Connect team?
    • How do I fix the "Dynamic Imports are Not Allowed" Error?
    • How to Leave an AppExchange Review for Merge Connect
  • Release Notes

Features

  • Template Management
    • Creating Templates
    • Previewing
    • Downloading
    • Uploading
    • Editing
    • Publishing
    • Unpublishing
    • Renaming
    • Deleting
  • Merge Field Generation
    • Merge Fields
    • Lookup Merge Fields
    • Related Lists
    • Merging with Lists
    • Merging with Tables
    • Conditional Logic
    • Merging with Images
    • Repeating Slides
    • Merging with Rich Text
  • File Actions
    • Merging Files
    • Bundling Files
    • Viewing Files
    • Downloading Files
    • Creating Public Links
    • Sharing Files
    • Viewing File Details
    • Uploading New File Versions
    • Editing File Details
    • Deleting Files
  • Automation
    • Record-Triggered Flows
    • Autolaunched Flows
    • Screen Flows
  • Agentforce
    • Installing the Extension
    • Merging with Agentforce
    • Adding Agent Actions
    • Generating a Document
    • Emailing a Document
    • Deleting a Document

Integrations

  • Share Connect
    • Merging from SharePoint Links Component
    • Merging with Record-Triggered Flows
    • Merging with SharePoint Images
  • eSign Connect
    • Merged Documents in Envelopes

Billing

  • Purchase
  • Manage
    • Licenses
    • 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...