Skip to main content

Loop through JSON array

Loop through each item in a JSON array. Use “Continue loop” Wrk Action to indicate that the Wrkflow should retrieve the next item in the loop.

Application

  • Loop

Inputs (what you have)

NameDescriptionData TypeRequired?Example
JSON ArrayJSON Array that you wish to loop through the itemsText (Long)Yes[{“foo”:”bar”}, 2]
Continue loop IDProvided by the “Continue loop” Wrk ActionText (Short)YesAll
Maximum number of itemsDefaults to all itemsNumberNo10
Start at last item?Start at the last item in the JSON array and loop backwards through the arrayTrue/FalseNo

Outputs (what you get)

NameDescriptionData TypeRequired?Example
Loop IDUnique identifier for the loopText (Short)NoAll
Item valueThe value of the item in the loopText (Long)NoAll
Item indexThe item index of the item in the loopNumberNo1

Outcomes

NameDescription
SuccessThis status is selected if the job has successfully completed.

Requirements

  • N/A