Create Word Activity
The Create Word activity enables users to manage Word documents, either by opening an existing .doc or .docx file or by creating a new one. This activity facilitates interaction with Word files within automated processes, providing control over file identification and overwrite behavior.
| Field | Description | Requirement |
|---|---|---|
| Word Name | Specifies a unique reference name for the Word file within the automation process. | Required |
| Word File Name | Defines the full path to the Word document, including its name and extension (e.g., C:\Documents\MyDoc.docx). | Optional |
| Overwrite | Determines whether to overwrite an existing file if one with the same name already exists at the specified path. | Optional |
Action Types & Examples
Overwrite Enabled
- Format:
boolean - Example Result:
true
Overwrite Disabled
- Format:
boolean - Example Result:
false
Implementation Examples
Field Setup - Word Name: robustaWord - Word File Name: C:\RobustaTemp\Robusta.docx
Execution Parameters - Overwrite: true - Overwrite: false
Technical Notes
When the
Overwriteparameter is set totrue, the activity will create the specified Word file if it does not exist. If a file with the same name already exists at the target path, it will be replaced.Conversely, if
Overwriteis set tofalse, the activity will create the Word file only if no file with the same name exists. If a file with the same name is found, the activity will terminate with an error, preventing any modification to the existing file.