Tailflow
Skip to article
Browse documentation

Google Drive · Action

Create file from text

Saves the text you write, filled in from the event, as a new file in your Drive: plain text, CSV, JSON, Markdown or a Google Doc.

When to use it

A file per event that somebody will open later: a JSON record of a large transfer, a CSV line set for a spreadsheet, a Google Doc that summarises a proposal.

At a glance

IntegrationGoogle Drive
Credits1
ConnectionGoogle Drive, by signing in

Settings

nameRequiredAccepts event fields
Name. The file's name. The ending that matches the format is added when it is missing.
format
Format.
contentRequiredAccepts event fields
Content.
folder
Folder. Leave blank for the top of your Drive. Only folders made by Google Drive steps are listed. A folder id or link from a step above also works. Picked from your account's own list, or typed.

What it hands on

Actions run in order, and each one can read what the actions above it produced. This one writes the fields below; a later action reaches them as {{ actions.drive_create_text_file_1.id }} — the action’s key, then which one it is if you use more than one of the same kind.

id
The file's id. It is what Copy file and Share file take.
name
The file's name in Drive.
link
The address that opens the file in a browser.

Good to know

  • Google Doc turns the text into a document you can edit in Drive. The other formats are saved as they are.
  • JSON is checked before anything is saved, so content that is not valid JSON fails the step.
  • Each run makes a new file, even when one with the same name already exists.
  • Only folders made by Google Drive steps are listed. A folder id or link from a step above also works.