Processing List Responses

Designing the workflow

  1. Set up a workflow and include a For Each activity after the exit
  2. Configure the API Callout
  3. Configure the For Each activity
  4. Set the List input to:
    [API Callout.Response].query.results.channel.item.forecast
  5. This will follow the JSON response as far as the forecast array, and then loop over each item
    1. Configure the loop Log activity
    2. Set the message to:
      [For Each.Record].Date + ' ' + [For Each.Record].High + ' ' + [For Each.Record].Low
    3. This will access the JSON results for each item in the array
      1. Finish and run
      2. Configure the failure log activity (see steps from previous section)
      3. Save and run the workflow (see steps from previous section)

Scroll to the bottom of the log and you should see a list of forecast high/low temperatures for each day.