How to Set Up a SFTP Integration in Assurance
Who is this article for?Administrators who want guidance on setting up a SFTP integration in Assurance.
Super User access is required.
SFTP (Secure File Transfer Protocol) allows administrators to import or export data for updating Assurance records, enabling communication with third-party software providers. Files should be in CSV (Comma-Separated Values) format.
Export: Allows you to export data out of Assurance using Assurance reports in a CSV file.
Import: Allows you to import data to Assurance for creating or updating forms, users, entities and contacts.
To set up the SFTP integration, first establish your own SFTP server. Then, follow the steps below to integrate it with Assurance.
1. How to setup an SFTP integration?
- Select on the Administration cog icon from the navigation bar.
- Under the General section, select on the Integration button.
- Based on your integration requirements, select the Import or Export button. Either of these options is suitable for initial server setup.
- On the Import/Export Screen, select on Create Import or Create Export button.
- On the Create Import/Export popup modal, select an existing server from the Select an Integration Server dropdown menu, or select Create an SFTP Server to create a new SFTP server.
Please note
You will need to configure your own SFTP server to set up an SFTP integration in Assurance.
To set up the details of a new SFTP server, click on Create a SFTP Server and fill in the following details:
2. How to configure your SFTP server in Assurance?
- Name: This is the name of the integration.
-
Server: Your server location. We recommend entering a fully qualified domain name (FQDN). For example:
sftp.some-domain-name.com - Username: Username used to log into the SFTP server.
- Password: Password used to log into the SFTP server.
- Use private key: Using a Private Key is preferable to using a password as this is more secure. To use this feature select Use Private Key. Generate the OpenSSH Public Private Keys without a passphrase. Place the Private Key in Assurance and the Public Key in your SFTP server setup. We recommend using Private Key.
After filling out these details hit Create to setup the SFTP Server details in Assurance.
3. How to create an Import SFTP?
Click on + Create Import then select an existing server or create new one using the instructions above. You will then see a new popup that asks for details of the Import that you are creating:
- Name: Can be anything, but it is advisable to name it in a way that relates to the template type you are using for the import, makes it easier to search for or refer to in future.
- Import File Location: The folder location on the SFTP server where you will keep the input(csv) file which will be imported into Assurance.
- Import To: Select which type of integration you are completing, you can choose from; Assurance Template, Users, Entities or Contacts. Note that each individual import can only go to one of these options i.e. you cannot have one import going into multiple Assurance Templates.
- Import Type: Select new or update.
- Import start date: Enter the date from when need to start the SFTP import process.
- Import Schedule: Imports can be scheduled to be Daily, Weekly, Monthly, Quarterly or Yearly
- Execute hour: Enter the time of the day when the SFTP import process should execute
- Import As: Enter a User name. This User will be credited as creating or updating the items in the import process.
- Send Failed Notification To: Select the users who you wish to receive notifications if the Integration fails
Click Save when you are done. Now select the import that you have just created and you can begin mapping fields for the import. At the top you will see details of the import that you just created:
Next you will need to map the columns from the import file and select what fields in Assurance they should be imported into. This process is mostly the same for each import type, but for the purposes of this guide we will go through a Forms and Registers Template.
Scroll down to find a section labelled Field Mapper. Here you will see a table with three columns:
- Identifier: The field that will be used to identify different Assurances, must be unique. By default the Key field is used.
- Import File: The field(column) name in the import file (csv) that is being imported into Assurance.
- <Template Name>: The list of fields in the template that you are importing into.
All of the fields in the template are listed out in the table. To select which fields you want to update using the Import File, under the heading labelled Import File type in the name of the column in your csv that matches this Assurance Field. Do this for every field that is being imported:
Note that what you put under Import File must match exactly what that column is called in the csv that you are importing. That column is then mapped to the correct field in the Assurance template. For instance in the screenshot above, the csv has a column called 'Other Party', and that has been mapped to the 'Entity Name' field in the Assurance Template.
If you have tables in the template, they can also be mapped. Scroll further down the page and you will find each table on the template with their own section:
Click on the table name to expand the section, then you can map the fields in the same way:
Note: Each table needs its own identifier, separate from the overall identifier. This is so that the overall identifier can be used to select the Assurance, then the table identifier is used to select the correct row on the table. Identifiers can only be Short Text or Numeric fields.
Once you are finished with the setup you can select Activate to start the integration, which will then trigger when the Execute Hour rolls around, or you can select Import to trigger the process manually:
The main difference when importing something other then a Assurance is that there is no Default Identifier like there is for Assurances, so you will need to select one manually when mapping Users/Entities/Contacts.
Please read this article for Data Import Rules.
4. How to create an Export SFTP?
Exporting is used to generate a report out of Assurance and export it to a File Location on the SFTP Server.
- Name: Can be anything, but it is advisable to name it in a way that it relates to the report type that you are using for the export, makes it easier to search or refer in future.
- Prefix: It could be left blank, but if you want to export multiple files in one directory, then it is a must field and should be unique.
- Export File Location: Enter the folder location where exported file will be saved.
- Export From: The report that you are exporting, make sure the report has been marked as Data Integration Report.
- Execute hour: Enter the time of the day when SFTP export process should execute, if SFTP export is activated execute hour is a must have field.
- Export As: Enter a User name. This User will be credited as creating the report that is exported.
- Send Failed Notification To: Select a user who needs to be notified when the SFTP export has failed.
- Export start date: Enter the date from when need to start the SFTP export process.
After filling out these details and hitting Save, you will then be taken to the newly created Export where you can Activate it, or click on Export to trigger it manually:
5. How to view the SFTP logs?
Each Import has a history that can be viewed to see that status of all of the import that were done, and also allows you to see when one has failed. To get to this screen go to the Details page for one of the Imports:
Then click on the History tab: