"Local File" node

You can use the Local File node to transfer the files from your device to the workflow. You can use the node in the workflows whose purpose is to pass the data further (for example, for import).

Prerequisites


  • Supported file formats: .CSV, .XML feed, .JSONL, .JSON
  • Maximum size of the file: 500 MB

Node configuration


Node settings without a file selected
Node settings without a file selected
  1. Click the Local File node.
  2. On the pop-up, upload a file from your device.
    IMPORTANT: You can't change the file after you launch the workflow. To import a different file, you must create a new workflow.
  3. Optionally, you can modify the delimiter, quotation mark character, and escape characters:

    1. Enable Customize metacharacters.
    2. Modify values in Delimiter, Quotation mark, and Escape character fields.
  4. If you uploaded a JSON file, you can define which data from the file is passed to the next node.
    Optionally, in the JSON path field, enter a JSONPath expression that points to the data you want to pass to the next node (for example, $.data.items[*]).

    • The expression must start with the $ character.
    • Each element that the expression returns is passed to the next node as a separate record. The rest of the file is discarded.
    • If the node retrieves more than one file, the expression is applied to each file separately.
    • If you leave the field empty, the node passes the entire file.
  5. Optionally, to check the data, click Preview. The preview shows the first 20 records of the uploaded file. If you entered a JSON path, the preview shows only the data at this path. If the path is invalid, the Can't process a file error is displayed. If the path doesn't point to any data in the file, the preview is empty.
  6. Confirm by clicking Apply.

Example of use


You can combine the Local File node with the Import Profiles node to import a file with customer data.

The file used in this example
firstName,lastName,email Dwight,Addams,dwight.addams@test.com Martin,Smith,martin.smith@test.com Kurt,Doe,kurt.doe@test.com
Automation Hub workflow for a one-time customer import using Scheduled Run, Local File, Import Profiles, and End nodes
Single import of customers to Synerise
  1. Start the workflow with the Scheduled Run node.
  2. In the configuration of the node:
    1. Set the Run trigger to one time.
    2. Select the Immediately tab.
    3. Click Apply.
  3. Add the Local File node.
  4. In the configuration of the node:
    1. Upload the file with customers.
    2. Click Apply.
  5. Add the Import Profiles node.
  6. Add the End node.

Canonical URL: https://hub.synerise.com/docs/automation/operation/local-file-node