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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to loop through ob...
Power Automate
Answered

How to loop through object with dynamic properties?

(2) ShareShare
ReportReport
Posted on by 15
If the JSON object that I receive looks like this:
{
  "Name": {
    "type": "string",
    "valueString": "randomname",
    "confidence": 0.6,
  },
  "Introduction": {
    "type": "string",
    "valueString": "randomintroduction",
    "confidence": 0.5,
  }
}
 
Is there a way to loop through the object's properties dynamically and get e.g. the property name or the valueString? (which means the property names and amounts that I receive as JSON object can change)
Categories:
I have the same question (0)
  • Ellis Karim Profile Picture
    11,691 Super User 2025 Season 2 on at
    Do you mean that the JSON data you get back can have different property names:
     
     
     
    Ellis
  • Verified answer
    ZC-23090643-0 Profile Picture
    15 on at
    @Ekarim Correct, right now I just solved the issue by making a Azure Function App that does the work for me. SO much easier in normal C#...
  • Ellis Karim Profile Picture
    11,691 Super User 2025 Season 2 on at
    @Ekarim Correct, right now I just solved the issue by making a Azure Function App that does the work for me. SO much easier in normal C#...
    The alternative in Power Automate is to use xml and xpath, but will require a number of additional steps, so your C# code seems to be the best option.
     
    Ellis

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard