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