loopFlow

Execute a sequence of steps for each item in an array

The loopFlow function enables you to execute a defined sequence of workflow steps for each item in an array. This powerful function allows for bulk processing, automated repetitive tasks, and complex data manipulation workflows that need to operate on multiple records.

overview

The loopFlow function is essential for automating repetitive tasks across multiple data records. It takes an array of items and executes the same workflow steps for each item, making it perfect for bulk operations, data processing, and automated notifications.

Function Purpose

Execute a sequence of workflow steps for each item in an array, enabling bulk processing and automated repetitive operations.

When to Use loopFlow

Bulk Data Processing

Process multiple records with the same workflow logic

  • Customer data updates
  • Inventory management tasks
  • File processing operations

Mass Notifications

Send personalized messages or alerts to multiple recipients

  • Welcome email campaigns
  • System status updates
  • Reminder notifications

Data Synchronization

Sync data between multiple systems or databases

  • API data synchronization
  • Database record updates
  • External system integration

Key Concepts

currentElement

Special variable that holds the current item being processed in the loop

${currentElement.propertyName}

Sequential Processing

Items are processed one at a time in the order they appear in the array

Nested Loops

loopFlow functions can be nested to handle complex multi-dimensional data structures

Error Isolation

Errors in one iteration don't stop the processing of remaining items