How to use condition control(contains) between array variable and select action of filter array? Is that possible?
I want to filter the array variable if array variable contains the value which is there in the select array
Regards,
DML
Not sure, if this is what the op wanted, but I would solve this like this (without loop and variable):
Use a Select action with From: Array1
Select expressions:
Item:
item()
Contains:
contains(
outputs('Array2'),
json(
concat(
'{"Col1": "',
item()['Col1'],
'"}'
)
)
)
If the json(concat('{"Col1": "',item()['Col1'],'"})) part becomes too large in reality, add it to Array1 in advance with a Select action
Select 2 expression:
item()['Item']
Hi @DML1 ,
Power automate cannot compare 2 arrays directly. I did a sampe for you.
Michael E. Gernaey
566
Super User 2025 Season 1
David_MA
516
Super User 2025 Season 1
stampcoin
492