The WriteCSVFile action component writes a CSV file from the received data.

This example shows how to connect to the ReadCSV action component and the WriteCSVFile action component.

Once the ReadCSV action component has read the headers of the CSV, you select the WriteCSV action component and click on the

icon to automatically fill the step result fields. sin @prefix stands for “Step In”.

Once you have set the fields, go to Properties and define a file name to save the file to your local HubKit.

If you check “Overwrite”, the file will be overwritten even if it already exists. If unchecked, if there is an existing file, an error will occur and the action will be stopped.
If you check “Output header”, the header specified in “Header row label name list” will be included in the CSV.
“Header row label name list” specifies header items when outputting headers, separated by a comma.
In “Output field name list”, specify the fields to be outputted as data, separated by commas. If a nonexistent field is specified, an error occurs and the action execution is stopped.

  • The fields that can be specified are those displayed in “In Fields”.

The file is saved in the local Gravio HubKit <Gravio data folder>/action/data folder whereby the <Gravio data folder> is either:

On Windows: C:\ProgramData\Gravio\action\scripts
On Mac OS: /Library/Application Support/Gravio/action/scripts
On Linux: /etc/opt/gravio/action/scripts

The character code is UTF-8.

The corresponding part of this action component is the ReadLocalFile component.

Feedback

Was this helpful?

Yes No
You indicated this topic was not helpful to you ...
Could you please leave a comment telling us why? Thank you!
Thanks for your feedback.

Post your comment on this topic.

Post Comment