File Exchange

Overview

The File Exchange action can be used to create and download data to a CSV, XML or HTML file or to import CSV, XML and other Text files. 

An Import - Select File option can be used to import a file manually. 

The dropdown menu of the Actions button on the Home screen is populated with the File Exchange services. This allows you to select a file from your local drive and import it to a database on a cloud server. 

The FTP fields are required if files are imported from or exported to an FTP folder. 

FTP Fields

Export 

When exporting files, the data type and the filename is created in the SQL. A File is exported for each record which is returned using the select SQL.

SQL 

The SQL must only return one or more records including the following fields:

Import CSV

The Import action will import each file which is found in the designated Folder where the filename contains the Tag. The first row of the import file must contain headers that are the same as the input parameters used in the SQL that will update the database.  If the file is successfully imported, it is moved to an Imported folder, if errors are returned, it's moved to a Rejected folder.

Integrity checks include

Required fields

Import XML

The Import action will import each file which is found in the designated Folder where the filename contains the Tag. The first row of the import file must contain a header that indicates the XML version (eg: <?xml version="1.0"?>) the rest of the file needs to be encapsulated by one opening and closing tag.  If the file is successfully imported, it is moved to an Imported folder, if errors are returned, it's moved to a Rejected folder.

Note: 

Integrity checks include

Required fields

Import Text

The Import action will import each file which is found in the designated Folder where the filename contains the Tag. The file needs to contain text which will be imported to one field in the databaseIf the file is successfully imported, it is moved to an Imported folder, if errors are returned, it's moved to a Rejected folder.

Required fields

SQL

The SQL that is used to import the file must contain the following input parameters: