cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ganeshsanap
Super User
Super User

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 II
Dual Super User II

@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
MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Users online (66,870)