Do Merge Record
Last updated 30/03/2026
Overview
The Do Merge Record event is a server-side event that executes for each record while a mail merge is running. It executes to allow attaching documents to that specific record during the mail merge.
How it Works
When a mail merge is running:
- The Do Merge Record event executes for each individual record in the merge list.
- Any document attachments configured for that record execute during this event.
- Once the event completes for a record, the mail merge proceeds to the next record, and the Do Merge Record event executes again.
Use Cases
- Attaching PDFs or other documents to each record
- Ensuring each record receives its required attachments
Example Scenario
A user or a job runs a mail merge for 50 recipients:
- The Do Run event executes to start the mail merge.
- The Do Merge Record event executes for the first recipient, attaching the specified document.
- The Do Merge Record event executes for the second recipient, attaching the same or another document.
- This continues until the Do Merge Record event has executed for all recipients, completing the mail merge attachments.