How Do I Create Repeating Tables in a Document I Can Use with the Microsoft Word Activity?

To create repeating tables with the Microsoft Word activity, do the procedure in this topic.

Examples

Prerequisites

  • Microsoft Word installed in your environment.
  • An understanding of Microsoft Word templates.

    To create a Word template, refer to the online help for Word templates, Mail Merge fields, and bookmark fields in Microsoft Word.

How to Start

  1. In Microsoft Word, create or open a Microsoft Word template file.
  2. In your Word template, insert a table, or navigate to an existing table where you want to add a repeating node.

Procedure

  1. In your Microsoft Word template table, in the row where you want to start a repeating node, place your cursor in the far left table column.
  2. On the Insert tab, click Quick Parts > Field.
  3. In the Categories list, select All.
  4. In the Field names list, select MergeField.
  5. In the Field name field, enter TableStart:[node name].

    Replace [node name] with the name of your repeating node. The start and end tags must indicate the same node name. For example, TableStart:Employee and TableEnd:Employee.

    Example:

    NameDepartmentTitle

    <<TableStart:Employee>>

  6. Place the cursor in the table column where you want to end the repeating node.
  7. On the Insert tab, click Quick Parts > Field.
  8. In the Categories list, select All.
  9. In the Field names list, select MergeField.
  10. In the Field name field, enter TableEnd:[node name].

    Replace [node name] with the name of your repeating node. The start and end tags must indicate the same node name. For example, TableStart:Employee and TableEnd:Employee.

    Example:

    NameDepartmentTitle

    <<TableStart:Employee>>

    <<TableEnd:Employee>>

  11. Within each column of your repeating row, between the TableStart and the TableEnd tags, insert a merge field with the name of the process data variable you want to insert from your app. Repeat this procedure for each table cell in your row.
    1. On the Insert tab, click Quick Parts > Field.
    2. In the Categories list, select All.
    3. In the Field names list, select MergeField.
    4. In the Field name field, enter your custom attribute name.

      Example:

      NameDepartmentTitle

      <<TableStart:Employee>> <<FullName>>

      <<EmployeeDepartment>>

      <<EmployeeTitle>> <<TableEnd:Employee>>