What is the Loop (Pabbly) Module?
- The Loop (Pabbly) module is a new internal app in Pabbly Connect that helps you repeat actions again and again based on your data.
- If your trigger or app gives multiple items (like multiple rows, emails, or values), the Loop module will process each item one by one automatically.
- Think of it like a small programming loop — but extremely easy to use.
Why is the Loop Module Useful?
The Loop (Pabbly) module helps you easily manage and process multiple items without creating complicated workflows. Here’s why it is useful:
1. Automatic Branching
When you add the Loop module, Pabbly automatically creates two branches — the Loop Branch and the Main Branch. This makes it very simple to structure repeated and final actions.
2. No Task Consumption
The Loop module step itself is free and does not consume any tasks. You can add or configure the Loop without using your task quota.
However, the actions inside the Loop Branch will consume tasks normally. So if the loop runs 10 times, and there is 1 action inside the loop, it will consume 10 tasks.
3. Best for Bulk Processing
If you get multiple items (like rows, leads, contacts, emails), Loop processes each item one by one. Perfect for large data lists.
4. Supports Complex Workflows
You can add up to 3 levels of nested loops and also run multiple sibling loops. This helps in building advanced automations.
5. Cleaner & Faster Execution
Instead of adding multiple repeated steps manually, Loop repeats the logic automatically, making workflows clean, fast, and efficient.
How does the Loop Module work?
When you add a Loop module, Pabbly creates two branches:
Loop Branch (the repeating part)
Runs again and again for every item.
Example: If your array has 10 items, the Loop Branch runs 10 times.
Each run handles only one item.
Main Branch (runs only once)
Runs after all loops are completed.
Good for summary messages, final reports, etc.
Simple Understanding:
Loop Branch → Do work again & again.
Main Branch → Do the final work only once.
When Should You Use Loop?
Use the Loop module when you:
- Have multiple items and need to process each one separately.
- Need to perform repeated actions, similar to programming loops.
- Need actions after the entire loop completes.
Practical Examples
Important Note: Right now, the Loop Branch data is NOT visible or accessible in the Main Branch. This means:- You cannot collect or aggregate data from inside the Loop Branch and use it in the Main Branch.
- You cannot do summary calculations directly from Loop Branch outputs.
Below are updated examples based on this limitation.
Example 1: Update CRM for multiple orders
- Trigger: Google Sheet sends 10 orders
- Loop Branch: Runs 10 times → updates CRM 10 times
- Main Branch: Sends one summary notification to Slack
(e.g., using Google Sheets, Webhooks, API calls, or external aggregation)
Example 2: Create multiple Google Docs
- Trigger: List of 5 employee names
- Loop Branch: Creates 5 separate Google Docs and adds doc link to the Google Sheet
- Main Branch: Sends one message to the manager, which has a Google Sheet link
Rules & Limitations
- Nesting Support: You can use nested loops up to 3 levels.
- Sibling Loops: You can add multiple Loop modules in the same workflow.
- Compatibility Restriction: You cannot use the Loop and Iterator modules in the same workflow. You must decide: Either use Loop OR use Iterator.
- Works Only in the New Builder: The Loop (Pabbly) module is supported only in the new Pabbly Connect builder.
Successful Integration:
Use the Loop (Pabbly) module when you need to: - Process multiple items one by one. - Perform repeated actions based on array input. - Execute structured logic similar to loops in programming. This module is ideal for workflows where repetition is required without consuming additional tasks
If you encounter any issues or require additional assistance, feel free to contact our support team for help. ([email protected])
Happy integrating!
Attachments
Last edited:
