File Store

Version: 2.0.0

An Integration to manage file store. It can create/update or delete CSV from file store.

Connect File Store with LogicHub

  1. Navigate to Automations > Integrations.
  2. Search for File Store.
  3. Click Details, then the + icon. Enter the required information in the following fields.
    • Label: Enter a connection name.
    • Reference Values: Define variables here to templatize integration connections and actions. For example, you can use https://www.{{hostname}}.com where, hostname is a variable defined in this input. For more information on how to add data, see 'Add Data' Input Type for Integrations.
    • Verify SSL: Select option to verify connecting server's SSL certificate (Default is Verify SSL Certificate).
    • Remote Agent: Run this integration using the LogicHub Remote Agent.
    • URL (Optional): URL of your Logichub instance. Example: https://xyz.logichub.com (Default to connect to the local LogicHub server using https://nginx:8443).
    • API Token: API Token for accessing File Store. To create API Token, see details.
  4. After you've entered all the details, click Connect.

Actions for File Store

Create or Update

Save data of table as CSV into file store.

Input Field

Choose a connection that you have previously created and then fill in the necessary information in the following input fields to complete the connection.

Input NameDescriptionRequired
File Path to UploadPath in file store where CSV will be uploaded. Eg: folder/data.csvRequired
Include Hidden FieldsInclude hidden fields in CSV? Eg. lhub_id,lhub_page_num (Default is 'No')Optional

Output

A JSON object containing multiple rows of result:

  • has_error: True/False
  • error: message/null
  • num_of_rows: Number of rows in the CSV file.
  • result: Upload status
{
  "has_error":false,
  "num_of_rows":2,
  "result":"File has been created/updated successfully to store",
  "error":null
}

Delete

Delete CSV from file store.

Input Field

Choose a connection that you have previously created and then fill in the necessary information in the following input fields to complete the connection.

Input NameDescriptionRequired
CSV file Path to DeleteCSV file path in file store to delete. Eg: folder/data.csvRequired

Output

A JSON object containing multiple rows of result:

  • has_error: True/False
  • error: message/null
  • result: Delete Status.
{
  "has_error":false,
  "result":"File has been deleted successfully from store",
  "error":null
}

Release Notes

  • v2.0.0 - Updated architecture to support IO via filesystem
  • v1.0.4 - Added documentation link in the automation library.
  • v1.0.3 - Added two actions to File Store.

© Devo Technology Inc. All Rights Reserved.