Combine data from several sources

Coupler.io allows you to consolidate and merge data from different sources into a unified dataset. You can fetch data from one or more data sources and combine it in the destination - all with a single importer.

Combining data from two or more sources is available in two modes in Coupler.io: JOIN and APPEND.

Steps to combine data from multiple sources

  1. Add the needed sources to the importer. Set up their parameters.

  2. Proceed to the "Transformations" step.

  3. Preview and transform the data in every source based on your needs.

  4. Select the mode in which you want to combine data: JOIN or APPEND.

  5. Preview and transform the combined data based on your needs.

  6. Proceed to the "Destinations" step. Set up its parameters.

  7. Set the needed schedule for your importer, and run it.

Adding multiple sources

1. When setting up an importer in Coupler.io, the first step is to set up your Data source to extract data. After setting up your first source, you will have the option to add a new source or duplicate the existing one.

Adding a new data source:

Duplicating a data source (this action will copy all the settings from your current source, so you can modify only the needed ones):

2. Add as many data sources as you need. You may also edit the importer name for better identification:

3. Move on to the next step - Data Set:

Coupler.io will take a moment to pull data from your selected sources. Once the data is pulled, it will be loaded and shown under Data Set:

Once data is loaded on Data Sets, you may:

  • Switch between sources on the left panel to preview what data was returned for each source

  • Preview and transform the data in each separate source based on your needs

Then, you can select the type of data combining you need - Append, Join, Aggregate:

How to remove sources from the importer?

To remove completely:

  • Go to the "Sources" step on your importer, and selec the source you want to remove:

circle-exclamation

To disable a source in the importer without deleting it completely:

  • Go to the "Sources" step in your importer, and switch the toggle off near the source you want to disable

This action preserves the source's settings but removes data from this source on Data Sets (and it won't be imported to the destination accordingly). If you enable the source back on, the data will appear on Data Sets again.

Adding multiple transformations

Coupler.io allows adding several layers of transformations to your dataset. This functionality allows you to:

chevron-righthand-point-right Add as many sources to your importer as you need, then choose to combine them independently in Append/Joinhashtag

Example: you may add 4 Sources to your importer, then

  • Append Source 1 with Source 2

  • Join Source 3 with Source 4

  • on the "Destinations" step, you may choose which specific dataset to import to your destination. It can be Append, or Join

chevron-righthand-point-right Add as many sources to your importer as you need, combine them in Append/Join, then use these Append/Join datasets as sources for your next transformations.hashtag

Example:

  • Append Source 1 with Source 2 = Transformation 1;

  • Join Source 3 with Source 4 = Transformation 2;

  • Append Transformation 1 with Transformation 2 = Transformation 3

  • Add Source 5

  • Join Transformation 3 with Source 5

  • and so on

circle-check

A use-case example

We want to combine Xero Invoices and Credit notes in one data set. We also want to show an account associated with invoices and credit notes. On top of that, we want to repeat the same for our 2nd Xero tenant and combine data from 2 tenants together.

spinner

Steps:

1

Add a Xero importer, connect the source account, and pick tenant #1 in the source settings

2

Pick Invoices as data entity for import, and set other needed parameters of the source. Rename the source, and duplicate it

3

In the duplicated source, change the data entity to Credit Notes. Add another source for Accounts with the same steps, and proceed to the Data Sets

4

Add the first transformation: Append Invoices and Credit Notes. Rename the received Append view accordingly

5

The Append matched data as-is from the sources. Since we want an aligned dataset, let's modify columns in our sources accordingly:

  • hide unneeded columns

  • rename columns to match in both sources ( e.g. column "CreditNoteID" in Credit Notes source, and "InvoiceID" in Invoices source we rename to just "ID" in both sources, so we get aligned data under the same column in our Append view)

  • preview Append view to confirm it looks as we want

6

Now we need to add the Account Name to Invoices & Credit Notes (the original data in these sources has only Account id). Add the second transformation: Join "Accounts" Source to "Invoices & Credit Notes" View

7

Preview the results, give the received Join view the proper name:

Hide unnecessary columns received after left-joining the Accounts data: we hid "LineItems.AccountID" and all extra columns from "Accounts"

8

We are all set with combining Invoices, Credit Notes and adding Account name to them for our 1st tenant 🎉 Proceed to the Destinations step, set up your needed destination, save and run the importer.

Now to add the same information from the 2nd tenant to the same importer, we can go 2 ways:

Option 1:

Add 3 more sources to your importer: Invoices, Credit Notes, and Accounts only this time change the tenant in source settings. Append and Join information in them using the same steps as above.

At the end, Append "Invoices with Credit Notes and Account" from tenant 1 view to "Invoices with Credit Notes and Account" from tenant 2 view.

Option 2:

1

Copy your importer (instead of adding new sources)

2

When copied, edit each source by changing your tenant in source settings. Change it for all 3 sources

3

Proceed to Data Sets.

You will see the same transformations copied from the previous importer, including your ready "Invoices with Credit Notes and Account" view. Only this time, it will contain data from tenant #2.

4

Add one more source to your importer

Select Coupler.io as your source, and choose the previous importer

5

Proceed to Data Sets

Add another transformation >> Append >> choose to combine "Invoices with Credit Notes and Account" and Coupler.io source:

6

Now all of your data is combined from both tenants. To easily differentiate which tenant data comes from, do this trick: add a formula column to Coupelr.io source and to "Invoices with Credit Notes and Account" View:

7

Proceed to the Destinations step, set up your needed destination.

8

Set the needed automatic schedule for your importer.

9

Save and run the importer.

Last updated

Was this helpful?