Home > database >  How can I iterate over an array which is inside Json body in Azure Logic App?
How can I iterate over an array which is inside Json body in Azure Logic App?

Time:11-18

This is the sample JSON { "status": "SUCCESS", "data": [List of objects to be iterated over] } I want to fetch this data array object since I' would be using it as a body for another API call

CodePudding user response:

We have used HTTP request as trigger in our logic app ,where json as payload.

Use COMPOSE in for each to pull the Name, Address values.

You can have the rest-api call(using HTTP) in the same for-each so that each object will be passed as body to post request.

enter image description here

  • Related