Lookups
Get additional data from any database by adding a Lookup in database block. You can lookup data from PostgreSQL, mySQL, MsSQL and a .CSV file. Follow the steps below:
How to add a Lookup block:
- Click on Add Action.
- A modal will appear. Search for "Lookup" in the search bar on top to see database options.
- Select the database type you want to add (CSV, PostgreSQL, mySQL, MariaDB, msSQL)
- A configuration block will be added to your workflow.
- Follow the next steps to setup the Lookup.
How to setup a database:
If you have not added a database of that type to your Nanonets account, follow the steps below.
- Complete the setup steps based on the type of database you have selected.
- Name the database added (optional)
- Click on Add Database.
- Continue to setup the Lookup.
Set up the Lookup block:
If you have connected a database to your Nanonets account, follow the steps below.
- Select the database to use for the lookup.
- Select the Table in the database that contains the Column you want to lookup.
- Select the Column that contains the list of values you want to see on the Nanonets interface. You can pick one or more columns here.
- The selected columns will be shown on your Nanonets interface (as shown under New field settings). You can rename the fields or toggle them on or off.
- Continue to Matching conditions.
Set up matching conditions (at least one is required)
Once you have selected which data you want to pick up from your database, you will need to specify some criteria based on which Nanonets will pick up the correct value. E.g: seller_name on the invoice should match the Vendor name in your Vendor CSV. Follow the steps below to set up matching conditions:
- From the Nanonets field dropdown select the field that should match in your database.
- In the same row, select the database column that corresponds to the Nanonets field you just selected.
- The default matching type is Exact._(1)
- You can add another condition if required._(2)
- Click on Done when all of the steps above are complete.
*(1) Matching types:
- Exact match: You can add multiple matching conditions with an exact match
- Fuzzy match (close match): You can only add one matching condition to do a fuzzy match
*(2) Multiple matching conditions:
- You can add multiple matching conditions if required. The file will be passed only if all matching conditions were met.
Test Lookup in database:
- Go to the Extract data screen of your model.
- Upload a new file > open the expanded view.
- If a match was found, the value will be shown on the right hand side.
- If the match was not found and you set up an Approval rule > an error flag will be shown.
Updated 5 months ago