object.iterator action

This trigger action receives an object and iterates over its key-value pairs.  Every time it is routed to, it outputs the next key-value pair. 

Action

On the Adding Trigger page, under Object, click and drag the object.iterator to the canvas.

Canvas

When dragged onto the canvas, the appearance of the action is a diamond with three routing points.

The left routing point (red) is the failure route. This route will be taken if the array to be evaluated results in an error.

The bottom routing point (gray) is the done route. This route will be taken when all the key-value pairs have been iterated.

The right routing point (blue) is the next route. This route will be taken when each key-value pair gets iterated.

Form

Parameters

Name

Type

Required

Descriptions

Input

Object

Yes

The object containing the key-value pairs.

Action variables

Name

Type

Description

$(action.X.key)

String

The key of the key-value pair.

$(action.X.value)

ANY

The value of the key-value pair that is currently being iterated.