Word Open (Session)
Word Open (Session)
Section titled “Word Open (Session)”Type: word-open · Package: Word Activities v1.0.0 · Output: ZoanWordSession
Open an existing .docx document and return a session (ZoanWordSession) that you share with other Word activities. Use it when you are going to do several operations on the same document or modify it by adding content.
How it works
Section titled “How it works”Open the path file. You have two modes (see session model):
- With
body: activities inside inherit the session automatically; When finished, the document closes (remember to save with Word Save if you modified it). - No
body: save the session to an output variable; pass it assessionto the activities and close it with Word Close.
Required parameters
Section titled “Required parameters”| Parameter | Editor | Description |
|---|---|---|
path | expression | Path of the existing .docx file. |
Optional parameters
Section titled “Optional parameters”Ninguno.
Subflows (lanes)
Section titled “Subflows (lanes)”body optional
Section titled “body optional”Activities to be executed with this document. If omitted, returns the session as output.
Output
Section titled “Output”Returns a ZoanWordSession. Pass it as session to other Word activities.
Example
Section titled “Example”Word Open path = = asset("contrato.docx") └─ body: Word Find & Replace find = "{CLIENTE}" replace = = cliente.nombre Word SaveRelated activities
Section titled “Related activities”- Word Create — create a new document.
- Word Save / Word Close — guardar y cerrar.