Explore Plans
Google Drive

Create a file from text

This action will create a new file in the Google Drive folder you specify, with the name and text you give it, as a Google Doc or a plain text file. If a file with that name exists, a numbered copy is created.

Developer info

API endpoint slug
google_drive.create_file_from_text
Filter method
GoogleDrive.createFileFromText.skip(string?: reason)
Runtime method
runAction("google_drive.create_file_from_text", {})

Action fields

Filename Text input > File name

Label
File name
Helper text
E.g. Meeting notes, or notes.txt for a plain text file
Slug
filename
Required
true
Can have default value
true
Filter method
GoogleDrive.createFileFromText.setFilename(string: filename)

Content Text input > Long text

Label
Content
Helper text
Plain text; line breaks are kept
Slug
content
Required
false
Can have default value
true
Filter method
GoogleDrive.createFileFromText.setContent(string: content)

Path Text input > Path to a folder

Label
Drive folder path
Helper text
Format: some/folder/path (defaults to “IFTTT”)
Slug
path
Required
false
Can have default value
true
Filter method
GoogleDrive.createFileFromText.setPath(string: path)

File type Dropdown list

Label
File type
Helper text
Google Doc to edit in Docs, or a plain text file such as a .txt, .csv or .md
Slug
file_type
Required
true
Can have default value
true
Filter method
GoogleDrive.createFileFromText.setFileType(string: file_type)