Skip to main content

Notifications

Community site session details

Community site session details

Session Id : 48WvjNjnCmnTZtRNArBmM/
Power Automate - Building Flows
Answered

Condition: Array of Objects Contains Field Matching

Like (0) ShareShare
ReportReport
Posted on 29 Sep 2023 17:28:25 by

Hello, I am attepting to write a flow that looks through an Array of Objects and determines if there is a matching value on a certain field. 

 

Here is the structure of my Array of Objects:

 

[
 {
 "id": "ABC",
 "label":"ABC"
 },
 {
 "id": "BCD",
 "label":"BCD"
 },
 {
 "id": "CDE",
 "label":"CDE"
 }
] 

 

Here is the structure I am trying to match against:

 

{
 "id":"ABC"
}

 

 

I want to build a condition such that if the id value is contained within the Array then evaluate true, but if its not contained within the array, evaluate false. 

 

Using the Contains option within the Condition Connector is giving me false values everytime.

 

  • Verified answer
    Matthy79 Profile Picture
    4,178 Super User 2024 Season 1 on 29 Sep 2023 at 17:43:40
    Re: Condition: Array of Objects Contains Field Matching

    You habe to create a simple array (not a key value pair) to use contains.

     

    But if you only want to check to that single object you could use something like:

     

    equals(item()[‘id’], YOUROBJECT[‘id’])

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Automate - Building Flows

#1
stampcoin Profile Picture

stampcoin 61

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 47 Super User 2025 Season 1

#3
rzaneti Profile Picture

rzaneti 31 Super User 2025 Season 1

Overall leaderboard
Loading started
Loading complete