Iteration - iterate over parent response

Iterator action type enables iHUB to loop through the parent response and send a request action per item in the list of the response.

How to create

Click Create button and select Iteration.

Normally the Iteration is placed as a child of another action since it will need to loop through a response.

Incoming

Incoming rules can trigger an Iteration directly, this means that if the external systems send data to iHUB, it can easily loop through that data and perform actions.

When to use

Use the action type Iteration if the parent response needs to be broken down to a REST call per item in an array.

Example 1. Object with an array of items

Object with array of items
{
  "items": [
    {
      "name":"Item A",
      "id": 1
    },
    {
      "name":"Item B",
      "id": 2
    },
    {
      "name":"Item C",
      "id": 3
    }
  ]
}

To loop through the above list create an Iteration under the application that response looks like the above.

To send a request per item enter the JSON Path: 

$.items[*]

This will result in iHUB sending the input variables to its children.