cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
goaltender36
Level: Powered On

Get first item in nested array from an array of objects

 

Hello,

 

I have an array of objects that gets returned to me from a POST method. Within each object is another array. My goal is get only the first item of that nested array (the first item in the "heirarchy" array".

 

Here is an eaxample of what is returned.

 

 

 

{
    "categories": [
        {
            "category_id": "10000000",
            "group": "special",
            "hierarchy": [
                "Bank Fees"
            ]
        },
        {
            "category_id": "10001000",
            "group": "special",
            "hierarchy": [
                "Bank Fees",
                "Overdraft"
            ]
        },
        {
            "category_id": "10002000",
            "group": "special",
            "hierarchy": [
                "Bank Fees",
                "ATM"
            ]
        },
        {
            "category_id": "10003000",
            "group": "special",
            "hierarchy": [
                "Bank Fees",
                "Late Payment"
            ]
        }
   ]
}
1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: Get first item in nested array from an array of objects

2 REPLIES 2
Super User
Super User

Re: Get first item in nested array from an array of objects

fady
Level: Powered On

Re: Get first item in nested array from an array of objects

Check this awsome video from Audrie, It answered this the best:

 

https://www.youtube.com/watch?v=PRKcQ0Q4BJE

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020.

thirdimage

Flow Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 169 members 3,392 guests
Please welcome our newest community members: