Skip to content

Word Set Property

Type: word-set-property  ·  Package: Word Activities v1.0.4

Sets a metadata field (property) of the document: title, author, subject, keywords, etc. Useful when generating documents so they carry the right information (author, title), or to classify them.

Assigns value (converted to text) to the property set in property. It accepts session or path — see the two modes:

  • With path: opens the file, sets the property and saves it to the same path automatically.
  • With session (or inside a body): sets it in memory; save afterwards with Word Save (Word Create with body saves by itself).

For Created and Modified, value must be a recognizable date (2026-03-14, 2026-03-14 09:30). If it cannot be read as a date, the property does not change and the activity does not fail. property is picked from the list; it does not accept expressions.

ParameterTypeDefaultDescription
propertystring—Property to set: Title · Author · Subject · Description · Keywords · Category · Created · Modified.
valueobject—Value to assign. Stored as text; for dates, a valid date. If the expression returns nothing, the property is left empty.
ParameterTypeDefaultDescription
sessionZoanWordSession—Session from Word Open or Word Create (instead of path). Inherited automatically inside a body.
pathstring—Path to the .docx (quick mode: opens, sets and saves by itself). Only used when there is no session.

This activity does not return a value.

Word Create path = reportPath
└─ body:
Word Set Property property = Title value = "Monthly Report"
Word Set Property property = Author value = "Reporting Robot"
Word Append Paragraph text = "Monthly Report" style = Title
Word Get Property path = reportPath property = Title → output: title
MessageCause and fix
'session' or 'path' is required.There is no session and no path.
File not found.The path does not exist on the robot’s machine.
'property' is required.No property was chosen.
Unknown property: '…'.The property name is not in the supported list.