Skip to main content
Roberty Studio
RPAFile Management

File creation

File creation

Creates a new empty file at a specified path and with a specified name. Useful for initializing files that will be filled in by other actions along the automation flow.


Options​

File path​

Enter the path of the folder where the new file will be created. Example: C:\Desktop.

File name​

Enter the name of the file to be created, including its extension. Example: report.txt.

Returns​

Javascript code​

js
actions["action-id"].path // returns the file path (Text)

Field selection​

  • path — returns the file path (Text)

Rules and Conditions​

  • The File path and File name fields are required.
  • The destination directory must exist before the file is created.
  • The file name must include the desired extension (e.g. .txt, .csv, .log).
  • If a file with the same name already exists at the path indicated, the behavior depends on the operating system — the existing file may be replaced.