How to merge row arrays

How to merge row arrays
Tools
·
Created: 03/16/2022
·
Updated: 01/15/2024
·
3 min. read

In this article

The Row sections merger tool allows you to combine a row section (an array of objects) of one step with a row section of another step into one array.

In the tutorial for Row sections merger, we gave definition for Rows in Albato. Now there is a tool that expands the possibilities of working with Rows. For instance, you have Rows in two steps of the automation, and you want to transfer them to the third step.

How to use

Let’s consider the example of AliExpress + CRM + Rows union tool automation.

We need to specify the internal UUID of the product when adding it to the customer order in the CRM-system, e.g. MoySklad. Upon receipt of an order from AliExpress, we receive only the product internal ID from AliExpress and SKU code. You can make SKU code equal to UUID in MoySklad, but it will be inconvenient.

As usual, checking is made either by article or by the external code. We have created an action for MoySklad that allows you to create or find a product by article or code. When we receive an order from AliExpress, CRM starts searching for products with article/code/external code is equal to the SKU. As a result, we have Rows of the found products with their internal UUID, which we can transfer to the order.

We have our trigger Rows from AliExpress and our action Rows from MoySklad. Now we need to combine these data arrays before creating an order, as we want to transfer the quantity of goods from AliExpress with products ID from MoySklad.

For such combination and the subsequent correct transfer of data, the Rows union tool was created. It allows you to take two arrays from trigger and action (e.g. AliExpress and MoySklad) and unite them into one array by matching the objects by some value (e.g. SKU and article).

Thus, you can create an order with product data from AliExpress and UUID obtained from the product search in CRM.

How to set up

Open the Automation builder section, add the tool between steps.

pub-img-8251-1.png

Select the Rows union tool.

Select the first step to take the Rows. In our example it is AliExpress.

Select the second step to take the Rows. In our example it is MoySklad.

Open the tool’s settings.

Select what action should this tool perform in case if the pair cannot be found, namely when you cannot match two rows of two steps. For example, if Step 2 fails to find matched items: the tool will skip this item, fill in the fields or report an error.

We can also screate a scenario if several pairs are found. For instant, we search in CRM items by name and find two items with the same names. The tool can skip the second item and use the first item, or duplicate, or report an error.

Click Add condition button and select the values from Row 1 and Row 2 to match.

Let’s suppose we want to match AliExpress products by SKU with found products in MoySklad by article. To do this we should set up the tool this way:

You can also combine and add multiple conditions to find matches.

After the settings, click Save button.

Now, if you open the settings for the next steps, in the Row section fields, you can select tool’s results. You can select fields from both the first and the second steps.

This will enable you to make full use of Rows in Albato.

The Rows union tool can also be used with other services that send arrays of objects. The tool is configured the same way.


Tools

Join our newsletter

Hand-picked content and zero spam!

Related articles

Show more
How Integrations Improve Key SaaS Metrics
3 min. read

How Integrations Improve Key SaaS Metrics

Learn how SaaS integrations improve activation, retention, and revenue, and how embedded integrations with Albato can accelerate your growth.

What Is Churn Rate for SaaS? Definition & Benchmarks
8 min. read

What Is Churn Rate for SaaS? Definition & Benchmarks

Learn what churn rate for SaaS means, how to calculate it, and discover strategies to reduce churn and improve retention.

Paragon vs Workato vs Albato Embedded: Which to Choose
10 min. read

Paragon vs Workato vs Albato Embedded: Which to Choose

Compare Paragon, Workato, and Albato Embedded – three embedded iPaaS platforms for SaaS across ease of use, white-label embedding, pricing models, and ideal use cases.

Workato vs Tray.io vs Albato Embedded – Which Is Best
7 min. read

Workato vs Tray.io vs Albato Embedded – Which Is Best

Learn how Workato, Tray.io, and Albato Embedded compare across UX/UI, white-labeling, integration capabilities, pricing, and ideal use cases and which embedded iPaaS platform is best suited for your SaaS product.

Why Encourage Your Users to Learn AI Prompt Engineering
8 min. read

Why Encourage Your Users to Learn AI Prompt Engineering

Learn about why AI prompt engineering is becoming an essential skill for SaaS users and how you can encourage them to learn it.

Ultimate Guide: How to Choose the Pricing Strategy for Your SaaS
6 min. read

Ultimate Guide: How to Choose the Pricing Strategy for Your SaaS

Learn how to choose a SaaS pricing strategy that reflects product value, improves conversions, and supports long-term growth.

Filter Row Elements Tool
5 min. read

Filter Row Elements Tool

This tool helps you define conditions that determine which specific elements should be passed to the next steps of the workflow.

How to Connect Monial to Albato
4 min. read

How to Connect Monial to Albato

Connect Monial with Albato to integrate it with 1000+ apps, including AI tools like Grok and Claude.

15 SaaS Metrics Every Startup Must Track
6 min. read

15 SaaS Metrics Every Startup Must Track

Learn which 15 key SaaS metrics every startup should track to grow revenue, reduce churn, and scale efficiently—a practical guide for founders and PMs.

 How to Connect Lead Connector (GHL) to Albato
3 min. read

How to Connect Lead Connector (GHL) to Albato

Connect Lead Connector with Albato to integrate it with 1000+ apps, including AI tools.

Paragon vs Tray vs Albato Embedded: Best Embedded iPaaS for SaaS
12 min. read

Paragon vs Tray vs Albato Embedded: Best Embedded iPaaS for SaaS

Compare Paragon, Tray.io, and Albato Embedded across UX, white-labeling, connectors, pricing, and best-fit use cases. Learn which embedded iPaaS is the right choice for your SaaS product.

How to Connect TestStory to Albato
3 min. read

How to Connect TestStory to Albato

Connect TestStory AI with Albato to integrate it with 1000+ apps, including AI tools.