Iterator tool

Iterator tool
Tools
·
8/4/2022
·
5 min. read

The Iterator tool can convert an array of objects (strings) into separate elements.

"Stings" is an unlimited set of data within an entity. For example, a deal in a CRM system has items of goods. Let’s imagine that one deal comes to Albato, while it can have an unlimited number of goods. Each item of goods has its own unique fields: name, quantity, and so on. All these fields come in one array.

2022-08-05_18-44-01.png

Each item of goods is a “String”, and all of them together are called “Strings”.

In automation scenarios, the "Iterator" tool will process each element of an array separately. It means that steps which are in the automation scenario after the "Iterator" tool will run as many times as you have received elements in the array. It is also possible to set other Albato tools to each entity.

What problem does the tool solve?

Let’s suppose that we want to create a new item in Inflow (inventory management platform) copying each item from the Bitrix24 deal. But we don’t know in advance how many goods will be in the deal.

We will use the Iterator tool to create as many goods in Inflow as there are goods in the Bitrix24 deal. It will convert each deal into separate items of goods, so we will be able to process and save each item separately.

We will add the Iterator tool before the action step - Inflow “New Item”. This step will run as many times as the number of goods the automation will receive in the Bitrix24 deal.

As a result, if we receive 5 goods in a deal, the Inflow “New Item” action will run 5 times, and 5 items in our Inflow account will be created.

How to set up Iterator

Use case example with CoinMarketCap and Telegram

Our goal: receive data by Telegram message on price change for a range of cryptocurrency. Set up a filter to send data only if the price has changed by more than 1%.

First create an automation with CoinMarketCap and Telegram.

Next click the + button to add a tool.

Pick the tool from the list.

unnamed.png

Specify the string from the CoinMarketCap step, which needs to be converted into separate elements - rates of one currency.

unnamed (6).png

In the Telegram step, we are specifying variables that will be sent in a message.

unnamed (8).png

Done! Now we will receive Telegram messages with new data.

CoinMarketCup rate change data comes in complicated format - as numbers.

unnamed (7).png

This is where the Albato Math Operation tool comes in handy. In its settings, we specify where to apply the mathematical operation, the "rounding type" and the number of characters after the decimal point.

unnamed (4).png

Now this math operation is applied to each element in the array, and we get the data in a readable way.

unnamed (3).png

The last step is to add a delay before the "Math operation" tool to send a Telegram message only if the changes are more than 1%.

unnamed (2).png

Add two conditions using the "OR" setting.

unnamed (1).png

Save the settings. Now we can start this automation. Data will come only for those cryptocurrencies that have been changed for the last hour by more than 1%.


Tools

Related articles

Show more
What Are White-Label Integrations for SaaS
7 min. read

What Are White-Label Integrations for SaaS

In this article, we explain what white-label integrations for SaaS are, explore their benefits and drawbacks.

Smarter Triggers, More Actions & Seamless Integrations
2 min. read

Smarter Triggers, More Actions & Seamless Integrations

Explore what’s new in Albato: features, apps, and improvements

In-house vs. Unified API vs. Embedded iPaaS: Key Differences & Best Use Cases
8 min. read

In-house vs. Unified API vs. Embedded iPaaS: Key Differences & Best Use Cases

In this article, you will learn the key differences between in-house integration development, Unified APIs and Embedded iPaaS to choose the best strategy for your SaaS product.

What the Ansoff Growth Matrix Is and How to Use It
8 min. read

What the Ansoff Growth Matrix Is and How to Use It

In this article, you will learn the definition of the Ansoff Growth Matrix, how it works, and how to use it for strategic planning in your business.

White-Label Albato Embedded vs. Zapier Embed: Solution Comparison
6 min. read

White-Label Albato Embedded vs. Zapier Embed: Solution Comparison

In this article, you will learn about the features and pricing fo Albato Embedded vs Zapier to help you find the best white-label integration solution for your needs.

Big News for AI Enthusiasts
2 min. read

Big News for AI Enthusiasts

Explore what’s new in Albato: features, apps, and improvements

Top 15 Tools for Outreach 2025
20 min. read

Top 15 Tools for Outreach 2025

In this article, you will find 15 top tools for outreach that help with contact enrichment, lead scoring, and more.

Product Updates We're Excited About
3 min. read

Product Updates We're Excited About

Explore what’s new in Albato: features, apps, and improvements!

How to Automate Repetitive Tasks in Your Business with No-Code Automation
8 min. read

How to Automate Repetitive Tasks in Your Business with No-Code Automation

In this article, you will learn about the benefits of no-code automation for business, which tools to use, and how to implement automation in your company.

Product-Led Growth: 4 Strategies and Implementation Guide
Embedded
13 min. read

Product-Led Growth: 4 Strategies and Implementation Guide

In this article, you will learn what product-led growth (PLG) is and how it drives user acquisition, retention, and scalability on real-life examples.

DeepSeek Overview: Features, Benefits, Use Cases, and Alternatives
Tools
7 min. read

DeepSeek Overview: Features, Benefits, Use Cases, and Alternatives

DeepSeek overview covering key features, benefits, and use cases. Compare top alternatives to find the best AI-powered solution for automation and efficiency.

Zapier vs. Albato Embedded: Which One Is Right for Your SaaS
5 min. read

Zapier vs. Albato Embedded: Which One Is Right for Your SaaS

In this article, you will learn the differences between Zapier and Albato Embedded and in which use cases each of these tools works best.