What this demonstrates
Separate templates from application data
MailMerge combines a reusable Word-compatible template with business data. Designers control the document layout while application code supplies strongly typed values at runtime.
The merge is performed in memory with ServerTextControl. No browser editor, temporary document, or client-side template processing is required.
API used
MailMerge.MergeObject
How it works
The endpoint validates the request, loads its fixed template, maps request properties to matching merge-field names, and returns the resulting Internal Unicode Format document as Base64.