At a glance

  • Edition: Basic
  • Action required: Upgrade to get these changes.
  • Highlights:
    • Pull a parent's child records into one template with nested queries.
    • Show currency amounts in each reader's local format with CurrencyCulture.
    • Swap characters or text in a field value with REPLACE.

This release adds nested queries, upper case and lower case parameters, the Global Merge feature, phone number formatting, the CurrencyCulture parameter and the REPLACE parameter. Together they give you more flexibility and control over the documents you generate.

Get the latest version · Check your installed version and upgrade

New features

1. Nested queries

Nested queries, also known as subqueries, retrieve related data from child objects based on a parent object. You can fetch information from related records without running several separate queries.

Nested SOQL query syntax

A nested SOQL query can display each child account with all its open opportunities, recent cases and active contacts, followed by the next child account with the same details.

Nested SOQL query that returns child accounts with opportunities, cases and contacts

Use nested query data in a Word template

You can use the data from nested queries directly in Word templates to include related records in your documents.

Word template that merges child records returned by a nested query

See Use nested queries and nested tables in a template.

2. Lower case and upper case parameters

New parameters convert text to upper case or lower case in your document templates, so you can keep text formatting consistent.

The upper case parameter, for example {{Contact.Name \* upper}}:

Template field using the upper case parameter to capitalize merged text

The lower case parameter, for example {{Account.Name \* lower}}:

Template field using the lower case parameter to convert merged text to lower case

See Upper case and Lower case.

3. Global Merge

The new Global Merge feature merges documents from different sources into a single document. It gives you one place to combine data from multiple objects or records.

Global Merge combining documents from several records into one output document

Global Merge is a separate feature from the MergeDocument parameter. To use it, you create a solution on the Document Global Merge object.

To combine the templates in one solution into a single document instead, see Merge several templates into one document.

4. Phone number formatting

You can now apply predefined formats to phone numbers in document templates, so they display consistently.

FormatExample
\ Phone:###.###.####{{Account.Phone \ Phone:###.###.####}}
\ Phone:(###) ###-####{{Account.Phone \ Phone:(###) ###-####}}
\ Phone:###-###-####{{Account.Phone \ Phone:###-###-####}}
\ Phone:###-###-####:INTERNATIONAL{{Account.Phone \ Phone:###-###-####:INTERNATIONAL}}

Format ###.###.#### in a template:

Phone number formatted with periods using the Phone parameter

Format (###) ###-#### in a template:

Phone number formatted with an area code in parentheses using the Phone parameter

Format ###-###-#### in a template:

Phone number formatted with hyphens using the Phone parameter

Format ###-###-####:INTERNATIONAL in a template:

Phone number formatted in international style using the Phone parameter

See Phone format.

5. CurrencyCulture

The CurrencyCulture parameter sets how currency values are displayed for a given culture or user locale, so amounts appear in a format that is familiar to each reader.

The parameter lets you customize currency formatting beyond the default culture settings. It can handle up to 5 different currency values at the same time and works in Word templates.

A culture code has two lowercase letters, a hyphen and two uppercase letters, for example en-US. The first two letters are the language and the last two are the country.

Template fields using CurrencyCulture culture codes to format currency amounts

The generated document shows each amount in its culture's format.

Generated document showing currency values formatted for different culture codes

See CurrencyCulture.

6. REPLACE

The new REPLACE parameter replaces specific values in your documents.

Syntax: {{REPLACE:FieldName:FromValue:ToValue}}

Syntax for spaces, commas and similar characters: {{REPLACE:FieldName:FromValue:{COMMA}{SPACE} }}

Supported entries for FromValue and ToValue: {COMMA}, {COLON}, {SPACE}, {NEWLINE}, {PERIOD}, {SEMICOLON}

REPLACE parameter in a template with a space before the closing braces

See REPLACE.

Bug fixes

  • Fixed: Times (including AM/PM) didn't display accurately in generated documents. See Time and AM/PM.
  • Fixed: You couldn't set an image's height and width in a document template. See Image H and W.

Enhancements

Along with the new features and bug fixes, the app is faster and performs better.

Related: Template syntax basics · Previous release: Release notes: February 2024 (v1.13.0) · Next release: Release notes: May 2024 (v1.20.0)