Append Text to File
Use the Append Text to File action to append text to an existing file.
Complete the following steps to use the Append Text to File action in your workflow:
1. Click and drag the Append Text to File action under the File utility to the canvas, place the pointer on the action, and then click or double-click the action. The Append Text to File window opens.
2. Edit the Label, if needed. By default, the label name is the same as the action name.
3. In the File Path field, enter the path to the file that you want to append the text to. This path must be relative to the <ThingWorx Flow Installation Directory>\modules\cache\userdata folder. Your workflow can access the files in the userdata folder only. Do not specify a relative path to access its parent directory or an absolute path to access any other folder on your local machine.
For example, if you specify the value in this field as Sample.txt, then Sample.txt must be already available in the userdata folder. If you specify the value in this field as SampleFolder\Sample.txt, then SampleFolder and Sample.txt must be already available in the userdata folder.
4. In the Data field, enter the text that you want to append in the file.
5. In the Encoding list, select the file encoding type.
6. Click Done.
Output Schema
The Append Text to File action returns an output schema as shown in the following figure: