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

Notifications

Announcements

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,442 Super User 2025 Season 2 on at
    Hi
     
    Please verify what you are calling level 1
  • Suggested answer
    abc 123 Profile Picture
    784 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard