Jetformat

Fill Word MERGEFIELD values

Use jetformat word mail-merge to fill Word MERGEFIELD values.

By Jetformat

Use mail-merge for Word MERGEFIELD codes. Supply the field name with its original case and keep the template unchanged for reuse.

Steps

  1. Start with a local DOCX. Replace the sample paths and identifiers with your own.
  2. Run the command below. Save to a new output path so the source remains available for comparison.
  3. Check the result as described below before using it in another job.
jetformat word mail-merge letter.docx --set 'Customer=Acme Corp' -o letter-updated.docx

Options for this task

Option Meaning
--output Output DOCX path (required)
--set Set a merge field as key=value; may be repeated

Check the result

Extract text from the output and search for the inserted customer value and any unfilled merge fields.

Notes and limits

Writing an Office document uses one credit per command. See the billing guide for the current rules.

The examples keep the original file. Add --force only when you intend to overwrite an existing output. Run jetformat word mail-merge --help to compare options with your installed version.

See the word command reference for the surrounding workflow.

Last updated