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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Select a specific obje...
Power Automate
Unanswered

Select a specific object from an array

(0) ShareShare
ReportReport
Posted on by

I got an array of objects with many fields that i'm trying to return to powerapps.
A small part with just 3 properties of one object would look like this 

{
    "scope": "folder",
    "createdDate": "2023-07-12T11:39:47Z",
    "customFields"[
        {
            "id": "IEAFEJZDJUADBXOS",
            "value": "KUAOWIZ7"
        },
        {
            "id": "IEAFEJZDJUADBWJW",
            "value": "500"
        },
        {
            "id": "IEAFEJZDJUADBYJS",
            "value": "100"
        }
    ]
}
  
I know that the field with ID = "IEAFEJZDJUADBWJW" stores the value of "ProjectEffort". Since there are hundreds of properties in the object I don't want to return all of them in powerapps so I'm trying to do a select but not sure how to catch only the values from customFields where id = "IEAFEJZDJUADBWJW" (there are actually about 20custom fields and i need to grab 3 of them)

MooFeR_0-1697012408170.png

 

I figured that i can get the value by using filter array but this would create a separate loop and select wouldn't work.
MooFeR_1-1697012698483.png

 

Categories:
I have the same question (0)
  • nichtaurelius Profile Picture
    50 on at


    Hi MooFer,

    To retrieve the object with the ID 'IEAFEJZDJUADBWJW', you should iterate through every object in the array and implement a condition. Check if the ID of the current object matches 'IEAFEJZDJUADBWJW'. If the current object has the desired ID, assign it to a variable. If there are multiple possible objects, follow the same process, but instead of setting variables, use an append-to-array operation when the current object has the same ID you are looking for. The illustration below depicts the outlined process:

    nichtaurelius_0-1697023440230.png

    I hope this helps resolve your issue.

    Greetings,

    Aurelius 🙂

  • MooFeR Profile Picture
    on at

    I think that's the same as my last image just using "condition" instead of "filter array" but the end result is the same. The issue is that after that I got an array just with the "customFields" so on the "select" action of my first image I could only fill the 3rd field and can't fill the first two anymore.

  • Anwarluck Profile Picture
    113 on at

    Hi @MooFeR , you can select the object based on id using filter array. Please try to update the item with the below expression. 

    item()['id']

    That way you will only select the item having that specified id. 

     

    Please let me know if you still struggles with it, thank you!

  • jojos_iq Profile Picture
    90 on at

    Just for anyone else who comes across this thread, this worked - iterating through every object in an array one by one is just too slow - I ❤️ Filter Array

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 250 Super User 2026 Season 1

#2
Expiscornovus Profile Picture

Expiscornovus 222 Most Valuable Professional

#3
Haque Profile Picture

Haque 174

Last 30 days Overall leaderboard