Loading
Upcoming Mandatory Changes to Public Key Infrastructure (PKI)Read More
Salesforce Enforces New Security Requirements in Summer 2026Read More
Salesforce Document Generation
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          JSON Output Types and Formula Functions for DocGen Transformation

          JSON Output Types and Formula Functions for DocGen Transformation

          DocGen uses these JSON output types and formula capabilities for transformation.

          Required Editions

          Available in: Lightning Experience
          Available in: Professional, Enterprise, Unlimited, and Developer Editions

          JSON Output Types

          Output Type Description When to Use
          Simple Flat structure For direct mapping when data doesn’t require restructuring
          Group Categorized records In grouped sections when records require grouping by a field or condition
          Hierarchy Parent-child structure For nested data
          Composite Combined outputs For multilevel relationships

          Supported Transformation Capabilities

          Category Action Supported Functions
          Arithmetic Run basic and complex math operations. +, -, *, /, ABS, ROUND
          Logical Evaluate multiple conditions simultaneously. AND, OR
          Comparison Validate numerical or data thresholds. >, <, <=, >=, ==
          Conditional Implement branching logic and fallbacks. IF, CASE, ISBLANK, BLANKVALUE
          String Merge text for professional output. CONCAT, SUBSTR, UPPER, TRIM
          Date and Time Format and calculate temporal data. FORMATDATETIME, DATEDIFF, ADDDAYS
          Relative Create sequences and cumulative partitions. ROWNUMBER, RANK, SUM, LAG
           
          Loading
          Salesforce Help | Article