web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Trying to make use of ...
Power Automate
Unanswered

Trying to make use of nested JSON objects in dynamic content

(0) ShareShare
ReportReport
Posted on by

I have this json file with multiple entries:

[
{
"id":"0ed5b3a1-4fe5-4cac-9",
"identificationNumber":"8734-70156",
"activeState":"active",
"status":"ActiveWithContribution",
"firstName":"Stewart",
"lastName":"Collins",
"association":{
"id":"f0fd7a7e-70d2-419",
"number":2300,
"name":"MAURICE",
"type":"normal"
}
},
{
"id":"3ed5b3a1-4fe5-4cac-8",
"identificationNumber":"9734-70157",
"activeState":"active",
"status":"ActiveWithContribution",
"firstName":"Bernie",
"lastName":"Nichols",
"association":{
"id":"d0fd7a7e-70d2-418",
"number":2306,
"name":"Pierre",
"type":"normal"
}
}
]

Schema looks like this :

{
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"identificationNumber": {
"type": "string"
},
"activeState": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"status": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"firstName": {
"type": "string"
},
"lastName": {
"type": "string"
},
"association": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"number": {
"type": "integer"
},
"name": {
"type": "string"
},
"type": {
"type": "string"
}
}
}
}

Keep in mind That have multiple (3) "association" like that are define as "type":"object" with same "id","number","name"

 

Problem is I need to be able to use "association" in an 'Apply to Each' function and I can't find a way to do that. Does not appear in Dynamic Content. Yes I can use individual value "id","number","name" from each of the 3 "objects" but this is hard to define as they have the same name and also this is not what I need. What I need is 'association' and other 'objets' as a string in a 'Apply to Each' loop.

 

Any Idea how I could achieve that?

 

Categories:
  • Bobron Profile Picture
    128 on at

    Hi @yanni_99 ,

     

    I've created a test Flow with the result below:

     

    When I try the "Parse JSON" action it automatically creates a "Apply to each" action.

    Bobron_0-1669792551746.png

     

    Parse JSON:

    Content: "your JSON input"

    Schema: "Generate from sample" -> Paste example JSON from above -> "Done"

     

    Now when you use a dynamic content from the Parse JSON action it will automatically create an "Apply to each"

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 425

#2
11manish Profile Picture

11manish 323 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 274

Last 30 days Overall leaderboard