Use the Create document action to create a blank Word document at the specified location.

Considerations

An error is displayed if any of the following conditions are encountered when you deploy your automation to create a Word document:
  • A document with the same name already exist at the specified location.
  • User running the automation does not have permission to create a document.
  • If Microsoft Word (Microsoft 365 Enterprise apps) is not installed on the device running the automation.

Settings

  • Use the File path field to select one of the following tabs to provide the location for the Word document:
    • Variable: Enables you to specify the file variable that contains the location of the Word document.
    • Control Room file: Enables you to select the document that is available in the Control Room.

      Click Choose to select the document.

    • Desktop file: Enables you to select the document from your local device using one of the following options:
      • Specific path: Click the Browse button to select the document from a specific location.
      • Regex: Either click the Browse button to select a folder path or click the Insert a value icon to select a variable that you have used to store the path for the Word document.

        Use the File name field to build your regex using the Type drop-down menu. The Case sensitive option enables you to match the letter case. Click the Add regex button to it.

    Note: Only the following types of file extensions are currently supported:
    • .docx
    • .doc
    • .rtf
  • (Optional) In the Password to open field, select one of the following tabs for adding a password to the Word document:
    • Credential: Enables you to use a value available in the Credential Vault.

      Click Choose to assign a password for opening the Word document.

    • Variable: Enables you to use a value that is stored as a credential variable.
    • Insecure string: Enables you to manually specify the values.
  • (Optional) In the Password to edit field, select one of the following tabs to add a password for editing the Word document:
    • Credential
    • Variable
    • Insecure string
  • In the Create Word session field, select one of the following tabs to create a Word session:
    • Local session: Specify a session name that can be used only in the current automation.
    • Global session: Specify a session name that can be used across multiple automations, such as parent, child, and other child automations of the parent.
    • Variable: Specify a session variable that can be used to share that session with other child automations.

      If you have not created a variable, click the Create variable icon.