Skip to main content

How to create a word template

Prepare a Word template with individual content controls and a repeating table row, then map the template to Yeeflow workflow data.

Use Word content controls to mark where Yeeflow’s Generate Document action will insert values. A contract template can include separate controls for a client name and a signature, plus a repeating row for the contract details.

Open Word Developer Tools

  1. In Word for Windows, open the document and go to File → Options.

  2. Open Customize Ribbon. Under Main Tabs, select Developer, then select OK.

  3. Return to the document and open the Developer tab.


Insert Placeholders in the Word Document

Add individual values

Place the cursor where the value should appear. On the Developer tab, choose Plain Text Content Control for a single line of text, Rich Text Content Control for formatted or multi-paragraph text, or Picture Content Control for an image. Select the inserted control and open Properties. Enter a recognizable Title and Tag, such as Company A for both.

The title and tag identify the Word placeholder. After uploading the template, use Set variables in Generate Document to select the workflow value for that control. For example, find Company A in the list and select the client name variable under Value. Map workflow variables to a Word template

Add a row that repeats for a Sub List

  1. Insert a table with one header row and one empty data row. For contract details, use columns such as Name, Type, Qty., and Amount.

  2. Right-click the table and open Table Properties → Alt Text. Enter the corresponding Sub List variable name in Title, such as ContractDetails.

  3. Select the entire empty data row below the header. Under Developer, insert a Repeating Section Content Control. Open its Properties and set the section’s Title and Tag, such as ContractDetailItem for both. Keep the header outside the repeating section.

  4. In each cell of the repeating row, insert a content control and set its own Title and Tag. Use an appropriate control for the value, such as a Plain Text Content Control, Date Picker Content Control, or Picture Content Control.

Word Content Control Properties for the repeating row, with Title and Tag both set to ContractDetailItem.

Upload and verify the template

Save the file as .docx and upload it to the document library. In Generate Document, choose the template and open Set variables. Map individual controls under Value. For the table, select the whole Sub List as its value, then open Select fields and map each cell control to the appropriate Sub List field. Generate document action · Map Sub List values to a Word template

Run a test with a known text value, an image if the template uses one, and two distinct Sub List records. Open the output and check the individual values, one header row, and a data row for each record. If a table or control is missing from Set variables, reopen the Word template and check its properties and position, then confirm you selected the updated file in the workflow.

Did this answer your question?