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.
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’])
David_MA
306
Super User 2025 Season 1
Michael E. Gernaey
271
Super User 2025 Season 1
stampcoin
249