Repeat sections and repeat blocks

What repeat blocks do

A repeat block repeats a piece of document content once for each related child record. Use it for line items on a quote, contacts on an account, sessions on an enrolment, and any one-to-many list. You design the row or block once, and the document renders one copy per child record with that record's data merged in.

Creating a repeat block

Repeat blocks start from the Expression Generator:

  1. Open the Expression Generator and select a related child object of your context object.

  2. Use Copy context to produce a repeat seed expression, for example:

    #{^OpportunityLineItem.OpportunityId:Id}

    This says: repeat over OpportunityLineItem records whose OpportunityId matches the context record.

  3. Insert it into the document. It becomes a repeat block wrapper.

  4. Inside the block, add the content to repeat, using merge fields scoped to the child record (the child object's own fields).

At render, the block is replaced by one copy per matching child record, each filled with that child's values. Repeat blocks can be nested for lists within lists.

Custom filtering

By default a repeat block returns the child records related to the context record. To narrow or order them, open the repeat block's toolbar and enter a custom filter (a query condition). For example, only signed line items, or only this year's records. The filter is validated and stored securely, and applied to the child query when the document renders.

URL-driven filters

A custom filter can reference URL parameters using a {params.name} placeholder. This lets the link control what the repeat block shows. For example a filter of:

StageName = '{params.stage}'

with a link ending &stage=Closed Won renders only the child records at that stage. This pairs repeat blocks with custom URL tags so one template can produce many filtered variants from the link alone.

Tips