# FileStorage action - Create file

FILE AND DIRECTORY ACCESS

Currently, all users in a workspace can access all FileStorage files and directories in the workspace when they use the FileStorage connector. Workato does not restrict access based on role unless the files are accessed from the FileStorage UI.

This action creates a new file in Workato FileStorage by uploading the file contents provided. The action is compatible with both streaming and non-streaming actions.

Create file in FileStorage action Create file in FileStorage action

# Input fields

Field Description
File name Enter the name of the file you plan to create.
File path Choose a directory or enter the directory path where you plan to create the file in FileStorage. If the path does not exist, Workato returns an error.
File contents Use a datapill from an upstream action, such as a download or bulk export action, to specify the new file's contents. You can also directly paste the contents.
Create CSV file Select Yes if the new file should be stored as CSV and should match a specific column schema. You must select this option to fetch CSV file data in batches using FileStorage triggers.
CSV column schema setup Required if Create CSV file is set to Yes. Select an option to set up the CSV column schema for the new file:

  • Auto infer: Workato automatically generates column names based on the incoming header row and determines the best possible data types for each column.
  • Set schema: You must manually define the data types for each CSV column.
Defaults to Auto infer if not specified.
Column schema Required if you set CSV column schema setup to Set schema. Select an option to describe the data types of the columns in the new file:

  • Add column name: Manually add a single column at a time.
  • Use a sample CSV file: Input all column names at one time by uploading a CSV file from your computer or by pasting up to 10 rows of a CSV sample, including a required header row.
Contains header row Select Yes if the incoming CSV content has a header row. Defaults to Yes if not specified. This optional field is only displayed if Create CSV file is set to Yes.
Column delimiter Choose the character that separates the column values in the incoming CSV content. Defaults to Comma (,) if not specified. This optional field is only displayed if Create CSV file is set to Yes.
Quote character Choose whether the quotation marks used as escape characters are single or double in the incoming CSV content. Defaults to Double (") if not specified. This optional field is only displayed if Create CSV file is set to Yes.
File encoding Select the encoding of the incoming CSV content. Defaults to UTF-8. This optional field is only displayed if Create CSV file is set to Yes.

# Output fields

Field Description
File name The name of the created file.
File path Complete path of the created file.
File size (bytes) The size of the created file in bytes.


Last updated: 1/30/2024, 1:38:00 AM