Files state in Circuit | Qntrl | Circuit | Online Help

Files

Files task enables the creation of workflows for file management, offering the following available states:

  • File Upload

  • File Transfer

  • File Download

 

Prerequisite

  • An active Bridge agent. Refer here to install and configure Bridge.

  • Create necessary Credentials for the applications to be connected by the Files module.

 

For more details about the File management module in Bridge, the keys, and its description, click here.

 

Example Use Case: In the employee onboarding process, once the employee verification is done and approved, the documents related to the employees have to be uploaded and saved for future reference and compliance purposes.

 

The below section explains how to set up File states within a circuit configuration.

File Upload  

By integrating the state into your workflow, you can upload files to Qntrl's File module.

Builder View

  For associating a File Upload state with a circuit:
  1. In Builder View, drag and drop the File Upload state from the left pane into your circuit or click the required File Upload state in your circuit.

  2. Under Configuration, update the common state field attributes. 

  3. The Bridge ID field should capture the details of the Bridge to be used for this task. Select the required bridge from the drop-down list.  

  4. In the Add Configuration section, choose whether to enable recursive transfers by selecting the Is Recursive checkbox, and then specify the desired action type.

    1. Move - Relocates files from source to destination.

    2. Copy - Copying replicates the file to a distinct location, leaving the original file intact in the source.

  1. Under the Source Details section, fill in the following fields:

    1. Host - Enter the hostname/IP address of the machine from where the file has to be uploaded.

    2. Credential Name - Select the credential of the source machine from the dropdown list.

    3. Path - Location of the file from where the file has to be uploaded.

  1. Under the Destination Details section, enter the Path location of the file to where it has to be uploaded.

  2. In Input / Output, enter the Input Path, Output Path, and Result Path. Learn more about I/O paths.

      

Code view

In Code View, the JSON to configure a state in Circuit for uploading a file is given below:

"Upload Employee Documents": {
"type": "file_upload",
"next": "Wait Period for Orientation",
"bridge_id": "bridge-1368_1",
"payload": {
"source": {
"remote": {
"host": "qntrl-hr-machine",
"credential_id": "api_cred_1",
"file_path": "/Users/qntrl-hr-machine/files/employees/idlist.csv"
}
},
"destination": {
"cloud": {
"file_path": "/Qntrl/HRFiles"
}
},
"recursive": true,
"action": "copy"
}
}

File Transfer

The File Transfer state is used to perform file transfer operations from one remote location to another remote location during your workflow process.

Builder View

For associating a File Transfer state to a circuit:

  1. In Builder View, drag and drop the File Transfer state from the left pane into your circuit, or click the required File Transfer state in your circuit.

  2. Under Configuration, update the common state field attributes. 

  3. The Bridge ID field should capture the details of the Bridge to be used for this task. Select the bridge to be configured from the drop-down list.  

  4. In the Add Configuration section, choose whether to enable recursive transfers by selecting the Is Recursive checkbox, then specify the desired action type.

    1. Move - Relocates files from source to destination.

    2. Copy - Copying replicates the file to a distinct location, leaving the original file intact in the source.

  1. Under the Source Details section, fill in the following fields:

    1. Host - Enter the hostname/IP address of the machine from where the file has to be transferred.

    2. Credential Name - Select the credential of the source machine from the dropdown list.

    3. Path - Location of the file from where the file has to be transferred.

  1. Under the Destination Details section, fill in the following fields:

    1. Host - Hostname/IP address of the destination machine to where the file has to be transferred.

    2. Credential Name - Select the credential of the destination machine from the dropdown list.

    3. Path - Location of the file to where the file has to be transferred.

  1. In Input / Output, enter the required paths. Learn more about I/O paths.


Code view

In Code View, the JSON to configure a state in Circuit for transferring a file is given below:

"Transfer Documents": {
"type": "file_transfer",
"next": "End",
"start": true,
"bridge_id": "<bridge_name>",
"payload": {
"recursive": true,
"action": "copy",
"source": {
"remote": {
"host": "<Host IP of the remote machine>",
"credential_id": "<credential_name>",
"file_path": "<source_file_path>"
}
},
"destination": {
"remote": {
"host": "ncs mc",
"credential_id": "files_6",
"file_path": "hdsnjd"
}
}
}
}

File Download  

The state facilitates file downloads from Qntrl's File module to the remote machine.

Builder View

For associating a File Download state with a circuit:

  1. In Builder View, drag and drop the File Download state from the left pane into your circuit or click the required File Download state in your circuit

  2. Under Configuration, update the common state field attributes. 

  3. The Bridge ID field should capture the details of the bridge to be used for this task. Select the bridge to be configured from the drop-down list.  

  4. Under the Source Details section, enter the Path location of the file from where the file has to be downloaded.

  5. Under the Destination Details section, fill in the following fields:

    1. Host - Hostname/IP address of the destination machine to where the file has to be downloaded.

    2. Credential Name - Select the credential of the destination machine from the dropdown list.

    3. Path - Location of the file to where the file has to be downloaded.

  1. In Input / Output, enter the required paths. Learn more about I/O paths.


Code view 

  In Code View, the JSON to configure a state in Circuit for downloading a file is given below:

"Download a File": {
"type": "file_download",
"next": "End",
"start": true,
"bridge_id": "<Bridge Name>",
"payload": {
"source": {
"cloud": {
"file_path": "<source_file_path>"
 }
 },
"destination": {
"remote": {
"host": "<Host IP of the machine>",
"credential_id": "<credential_name>",
"file_path": "<destination_file_path>"
}
}
}
}

    • Related Articles

    • Files

      The files module acts as a repository to keep the organization's paperwork organized. Users with the permission to manage organizational settings can access and organize files in this module. Business cases Using Bridge, the log files on the local ...
    • Data Backup

      A complete backup of your organization’s data can be obtained using Data Backup. This helps you maintain a personal copy of the organization’s information. Access Privilege Data Backup can be initiated only by the Organization Owner. To take a backup ...
    • Google Drive Extension

      Users can share files from their Google account using the Google Drive extension. Business Scenarios Share resumes or academic certificates Share google sheets to collaborate with your colleagues Companies can share RFPs (Request for Proposal) with ...
    • Dropbox Extension

      Share files from your Dropbox account, right into Qntrl using this extension. Business Scenarios Share user manuals with customers or vendors Share files of other apps to record inventory and production Share audio recordings for specific languages ...
    • File Management

      Early Access File Management module is not enabled for all users. If you’d like to try it out, please email our support team for early access. The File Management module facilitates file transfer operations across various locations, providing ...

    You are currently viewing the help articles of Qntrl 3.0. If you are still using our older version and require guidance with it, Click here.