New services
Explore Plans
Mobile menu Close menu
QNAPQNAP

Append text to file

This action will append to a text file as determined by the filename and folder path you specify. If there is no file present, a new file will be created. Once a file’s size reaches to maximum a new file will be created.

About this action

Triggers, queries, and actions are the building blocks of Applets. Triggers tell an Applet to start, queries ask a question, and actions are its end result.

Developer info

Description
This action will append to a text file as determined by the filename and folder path you specify. If there is no file present, a new file will be created. Once a file’s size reaches to maximum a new file will be created.
API endpoint slug
qnap.append_text_to_file
Filter code method
Qnap.appendTextToFile.skip(string?: reason)
Runtime method
runAction("qnap.append_text_to_file", {})

Action fields

Option shared folder Dropdown list

Label
Folder Path
Slug
option_shared_folder
Required
true
Can have default value
false

File name Text input > File name

Label
File Name
Slug
file_name
Required
true
Can have default value
true
Filter code method
Qnap.appendTextToFile.setFileName(string: fileName)

Content Text input > Long text

Label
Content
Helper text
Use <br> to add line breaks
Slug
content
Required
true
Can have default value
true
Filter code method
Qnap.appendTextToFile.setContent(string: content)

Folder path Text input > Path to a folder

Label
Subfolder Path
Helper text
Format: some/folder/path (defaults to “IFTTT”)
Slug
folder_path
Required
false
Can have default value
true
Filter code method
Qnap.appendTextToFile.setFolderPath(string: folderPath)

Maximum file size Text input > Short text

Label
Maximum File Size (MB)
Helper text
If the maximum file size is reached, a new file will be created. (0 means unlimited)
Slug
maximum_file_size
Required
false
Can have default value
true
Filter code method
Qnap.appendTextToFile.setMaximumFileSize(string: maximumFileSize)