Introduction
Creating an integration between a questionnaire and an external data source enables the user to retrieve data from the external data source e.g. party name, registration no., address, company form etc., and insert such data in the questionnaire and answer questions.
Prerequisites
To do a database integration, a connection between the database and the portal needs to be set up in advance. Certain connections are available by default, and additional connections can be developed.
Creating a database integration
Database integration is typically created on top of an existing questionnaire, but can be added when creating the questionnaire.
Create a "lookup" question
First a "lookup" question needs to be added to the questionnaire which instructs the user to insert the relevant search criteria in the questionnaire.
The question will be added to the questionnaire with a green dot indication that a database integration is active.
You can add several "lookup" questions to a questionnaire, e.g. if you need to retrieve information on several parties from the same database or if you need to retrieve information from several databases.
Create database integrated datafield
When a "lookup" question has been added to the questionnaire, database integrated data fields can be created.
If the external data source can only return one answer (e.g. company registration number) select Save and you are done.
External data source may return several values
In some cases the external data source may return several values, e.g. names of board members, secondary names etc.
If the external data source could return several answers, you need to configure how the answers shall be assigned to the data field and you will automatically be presented to the available options.
Select as appropriate one of the available options and select Save.
Autofill question with predefined answers via external data sources
When a "lookup" question has been added to the questionnaire, an API autofill can be added to questions with predefined answers.
A green dot will appear next to the answers which could be auto filled via the external data source to indicate that a database integration is active.
External data source may return several answers
In some cases the external data source may return several answers, e.g. names of board members, secondary names etc.
Questions with predefined answers can be answered based on the number of answers returned from the external database, e.g. number of names of board members.
You will need to define an autofill rule which determines when the particular answer will be selected.
Select as appropriate one of the available options, insert a number and select Save.