Write Dataset to Word Activity
The Write Dataset to Word activity enables users to persist changes made within a dataset to a specified table in an open Word document. This activity ensures that modifications are accurately reflected in the Word file upon completion of the changes.
| Field | Description | Requirement |
|---|---|---|
| Word Name | The reference name of the Word file that has already been opened or created. This name is typically selected from a dropdown list of available Word documents. | Required |
| Dataset Name | The reference name of the dataset that has already been created and contains the data to be written. This name is typically selected from a dropdown list of available datasets. | Required |
| Table Index | The zero-based index of the table within the Word document where the dataset will be written. For example, the first table has an index of 0. | Required |
| Include Header | Specifies whether the dataset's column headers should be written to the Word table. Select true if the dataset includes headers; otherwise, select false. | Optional |
Action Types & Examples
Word Name
- Format: String
- Example Result:
myDocument
Dataset Name
- Format: String
- Example Result:
salesRecords
Table Index
- Format: Integer
- Example Result:
0
Include Header
- Format: Boolean
- Example Result:
true
Implementation Examples
Field Setup - Word Name: newWord - Dataset Name: newDS - Table Index: 1 - Include Header: true
Execution Parameters - Word Name: newWord - Dataset Name: newDS - Table Index: 1 - Include Header: true
Technical Notes
If the specified table index does not exist in the target Word document, the activity will encounter an error with the message
No table found at that index. Therefore, it is crucial that the Word document contains a table structure at the designated index before the activity attempts to write the dataset.