Lists for Word Outputs

Inserts a list into a named location in a Word output file template to create dynamic bullet lists, numbered lists, and the like. You can create a list, and a sub-list within each of those list items. The contents of the list in Word is built from an array in Snap. The formatting of that list remains in the Word template.

Properties

Property Datatype

Description

Name text The name of the output field in the Word template.
External ID text

Not used in this context.

Value array The array to insert into the output field.

Example

In this example, we define two types, a BulletListTest (for the list items) and an IndentedItems (for any sub-list items any list item may have). After building the three list items (two of which have sub-lists), they are summarized into a new testBullets array, and passed into the output field.

 

The result would appear in the final Word document like this:

  • Test1
    • Indented Text
    • Indented Text
  • Test2
    • Indented Text
    • Indented Text
    • Indented Text
  • Test3

 

 

Read this walkthrough to learn how to create an array in Snap, create a table in the Word template, and connect the two together.

Was this article helpful?