cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ganeshsanap
Memorable Member
Memorable Member

Is there any easy way to get the keys of object?

I have a JSON object like below:

{
  "Z-Index2": "12345",
  "Material": "12345",
  "EAN": "12345",
  "AIP": "314.48"
}

I want to get all the keys (Z-Index2, Material, EAN, AIP) dynamically from this object.

 

Is there any easy way to get the keys without using any premium action?

2 REPLIES 2
Mira_Ghaly
Dual Super User
Dual Super User

@ganeshsanap 

Have you tried using XPath?

 

If this post helps you with your problem, please mark your as Accepted solution.If you like my response, please give it a Thumbs Up.

Blog: here

@Mira_Ghaly 

Yes, I tried the solution given by John Lu in below post:

http://johnliu.net/blog/2017/11/foreach-property-in-microsoftflow-json-with-xpath-microblog

 

This post is very old & the solution is bit complicated. So, I just wanted to know if there is any other (new & easy) way to get the keys of object?

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Users online (3,620)