This action saves variable value or other data streams (such as binary data) in a selected file. The Loftware Automation service must have write access to the defined folder.
File group defines the file to be opened.
-
File name: location of the file to be opened within this action.
Path and file name can be hard-coded, and the same file is going to be used every time. If only a file name without path is defined, the folder with Loftware Automation configuration file (.MISX) is used. You can use a relative reference to the file name, in which the folder with .MISX file is used as the root folder.
Data source: enables variable file name. Select a variable that contains the path and/or file name or combine several variables that create the file name. For more information, see section Using Compound Values in Loftware Automation User Guide.
If file exists group handles options in case of an already existing file.
-
Overwrite the file: overwrites existing data with new data. The old content is lost.
-
Append data to the file: appends variable values to the existing data files.
Content group defines which data is going to be written in the specified file.
-
Use data received by the trigger: original data as received by the trigger is going to be saved in the file. Effectively, this option makes a copy of the incoming data.
-
Custom: saves content as provided in the text area. Fixed values, variable values and special characters are permitted. To enter variables and special characters, click the arrow button to the right of the text area. For more information, see section Combining Values in an Object in Loftware Automation User Guide.
-
Encoding: encoding type for the sent data. Auto defines the encoding automatically. If needed, select the preferred encoding type from the drop-down list.