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 Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Top Solution Authors
Users online (1,535)