Hierarchical data
Generate a nested report
Merge a customer, its orders, and each order's line items into nested repeating regions. Compare the compact template with the expanded result.
Understand the current template
Explore its merge fields, repeating blocks, and nested structure in an interactive template map.
Ready to tryUse the controls above to interact with this demo.
What this demonstrates
Repeat any document structure
A merge block is a named template range associated with an array in the data source. Its content can include table rows, paragraphs, images, or other nested blocks.
The outer Orders block repeats once per order. Inside it, OrderItems repeats independently and resolves product fields from each child object.
API used
MailMerge.MergeJsonData
How it works
The controller loads the fixed TX template, reads hierarchical JSON from the same feature folder, removes unmatched empty blocks, and saves the fully expanded result in memory.