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 / Filter Array in Modern...
Power Automate
Suggested Answer

Filter Array in Modern Power Automate

(1) ShareShare
ReportReport
Posted on by 6
Hello All,

I’m trying to get a value out of an array. I can’t figure out the “Select” mapping or “Filter Array”to get the value “Level 1” from my array. Below are the elements of my JSON array.
 I have a simple flow with button trigger and a variable set as array and contains the JSON data below. Next, I have a Filter Array action with:
  • From which is the variable containing the JSON data
  • Filter Query is ’@equals(item()?['Key'], 'Level')’ which returns the second elements of the array.
How do I just get just the value of “Level 1” out of the JSON?

{
    "name": "JSONData",
    "type": "Array",
    "value": [
      {
        "__metadata": {
          "type": "SP.KeyValue"
        },
        "Key": "UserProfile_GUID",
        "Value": "f0c38635-398f-4aad-a4a1-544",
        "ValueType": "Edm.String"
      },
      {
        "__metadata": {
          "type": "SP.KeyValue"
        },
        "Key": "Level",
        "Value": "Level 1",
        "ValueType": "Edm.String"
      }
    ]
  }
]

 

 
Categories:
I have the same question (0)
  • Michael E. Gernaey Profile Picture
    53,963 Moderator on at
    Hi
     
    Please verify what you are calling level 1
  • Suggested answer
    abc 123 Profile Picture
    789 Moderator on at
    Something like:
     
    body('Filter_array_1')[0]?['Value'])
     
    The Zero means retrieve from the first returned row from the Filter Array Action.
  • MR-DevOperator Profile Picture
    6 on at
    @flmike I'm trying to retrieve "Level 1" from that JSON data. 
     
    Thanks for responding. 
  • MR-DevOperator Profile Picture
    6 on at
    @abc_123 Which step or location are you suggesting I put that code? 

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 411

#2
David_MA Profile Picture

David_MA 300 Super User 2026 Season 1

#3
Vish WR Profile Picture

Vish WR 291

Last 30 days Overall leaderboard