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 Apps / parsing complex Json
Power Apps
Unanswered

parsing complex Json

(1) ShareShare
ReportReport
Posted on by 38
 
I have a Json response from Power Automate that looks like this. 
{
"body": [
{
"summary": {
"duration": 665,
"length": 5619,
"baseDuration": 657
},
"polyline": "BF3-_mHgs3zbkMqBrOo2DjoBvHx7ByX8CmNlImtC0TyGsBiH_FoD"
},
{
"summary": {
"duration": 1358,
"length": 11563,
"baseDuration": 1224
},
"polyline": "BF_6inH8--zbgGnDrBhHzTxGmIltCpDhOg8B1WwnBsF6T1sFqU_oDuJrwD62CoLwD9BkClYyQsCH8D"
},
{
"summary": {
"duration": 719,
"length": 6421,
"baseDuration": 694
},
"polyline": "BFpj7mH4yuzbI7DxQrCpBkchzCjLrH2BtJmuDpUsnDzF05B_LrC"
}
]
}
 
 
I tried converting to string using string() in PowerAutomate before bringing it to PowerApps. 
Which got rid of the error but still could not extract the relevant data. 
 
Categories:
I have the same question (0)
  • Meekou Profile Picture
    200 Moderator on at
    How did you return value from Power Automate?
     
    Based on the error, it seems PowerApps already convert the string to object.
     
    Try to use like 
     
    First(api_output.body).summary.length
    Pay attention that your body is an array, you need to loop body to get every summary
     
    Best Regards,
    Meekou
  • scalca Profile Picture
    254 Moderator on at
    depending on how you get your json string you can do the following
    it is always connected to your json structure and you have to specify the untyped object within powerapps in order to use them
     
    in your scenario what you can do is the following
    since you'll get an object array you have to loop through them
     
    try with 
    ForAll(ParseJson(api_output).body,
    {summary:
    {
    duration: Value(ThisRecord.summary.duration),
    length: Value(ThisRecord.summary.length),
    baseDuration: Value(ThisRecord.summary.baseDuration)
    },
    polyline: Text(thisRecord.polyline)
    }
    )
     
    this will return a table with two columns (summary of type Record and Polyline of type Text)
     
    you can store this into a collection or use it directly in a gallery
     

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 364 Most Valuable Professional

#2
11manish Profile Picture

11manish 186

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 105 Super User 2026 Season 1

Last 30 days Overall leaderboard