Write File
Use the Write File action to create a new file.
Complete the following steps to use the Write File action in your workflow:
1. Click and drag the Write File action under the File utility to the canvas, place the pointer on the action, and then click or double-click the action. The Write 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 file name that you want to create. 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 is created in the userdata folder. If you specify the value in this field as SampleFolder\Sample.txt, then SampleFolder must be already available under the userdata folder and the Sample.txt file is created in the SampleFolder folder.
4. In the Data field, enter the text that you want to write to the file.
5. In the Encoding list, select the file encoding type.
6. Click Done.
Output Schema
The Write File action returns an output schema as shown in the figure that follows: