Read File
Use the Read File action to read a file or data.
Complete the following steps to use the Read File action in your workflow:
1. Click and drag the Read File action under the File utility to the canvas, place the pointer on the action, and then click or double-click the action. The Read 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 read the content from. 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 Decoding list, select the file decoding type.
5. Click Done.
Output Schema
The Read File action returns an output schema as shown in the following figure: