Use a repeating row in a Word table to insert one row for each Sub List entry. This example maps a Contract Details sub list to a contractor request document.
Business Scenarios
Use the same pattern for line items on a purchase order or invoice, tasks in a project report, items in an event schedule, or employees in a training summary.
Prerequisites
Prepare the approval form’s Sub List and a Word .docx template before configuring the workflow action.
1. A Sub List in Your Approval form
In the approval form, configure a Sub List and identify its associated workflow variable. In this example the variable is Contract Details, with Contract Name, Contract ID, Start Date, and End Date fields. Create a Sub List in an approval form
2. A Word Template with a Table
In Word for Windows, go to File → Options → Customize Ribbon. Under Main Tabs, select Developer and confirm. Insert a table with a header row and one empty data row.
Open Table Properties → Alt Text. Set the table’s Title to the name of the Sub List variable,
Contract Detailsin this example.Select the entire empty data row below the header. On the Developer tab, insert a Repeating Section Content Control. Open the control’s Properties and fill in its Title and Tag. Place only the data row inside this control so the header stays outside the repeated section.
In each cell of the data row, insert a content control for that column. Set the cell control’s Title and Tag to its corresponding field name. This example uses plain text controls for all four columns, including Start Date and End Date. Save the
.docxand upload it to the document library. Set up the table in a Word template
Steps to Save Sub List Values to a Word Template
In the workflow, place the document-generation step after the request’s Sub List data is available.
1. Configure the Workflow
Add Generate Document and choose the
.docxtemplate from the document library. Generate document actionOpen Set variables. Find Contract Details in the Content control column with Table as its Control type. Select the whole Contract Details Sub List variable under Value.
On that table row, select Select fields. Check the Content control rows you want to populate. Review their Control type, then choose the relevant Sub List field under Value for each row. For example, map the Word Contract ID control to the Sub List’s Contract ID field. Select OK to save the field mapping.
If the template also includes individual placeholders outside the table, map those separately in Set variables. Select OK in Set variables to confirm the overall mapping. Map regular workflow variables
2. Configure Output Options
Under Generation Type, choose Original File Type to keep the Word format or Single PDF File for PDF output. Enter an Output File Name, then use Save Output File To to select the file control variable. If the workflow needs to archive the generated file, configure the library destination in a separate workflow action. Save to a document library
3. Test the Configuration
Publish the workflow in a test application. Submit a request with two contract rows that have distinct names, IDs, and dates. Open the generated file and check that it has one header and two data rows. Compare each column with the source row, verify the date text, and confirm the file is in the variable or library location you configured. If the form allows an empty Sub List, run that case separately to see how your template renders.

