cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Badral
Helper I
Helper I

condition not working

Hello, 

Flow condition has a two criteria. When 2 criteria have a value, its checking condition. 

Screenshot 2021-04-22 193711.png

 but when only one of them has a value, cant check condition

Screenshot 2021-04-22 195541.png

 

22 REPLIES 22

@PrasadAthalye how to check contains() function in compose?

is it like if(OR(contains('a', 'b'), contains('c', 'c'))

i tried to wrote expression but i think i failed it.

if(OR(contains(triggerOutputs()?['body/Department/Value'],['ЗЭЗГ']),(contains(items('Apply_to_each')?['Value'],['ЗЭЗГ']))))

Can you try following ? It appears that you add additional brackets around 2nd contains.. I removed them..

if(OR(contains(triggerOutputs()?['body/Department/Value'],['ЗЭЗГ']),contains(items('Apply_to_each')?['Value'],['ЗЭЗГ'])))

 

Please Like and Mark this as Answer if it resolves your Issue.

Power Automate Community

Helpful resources

Announcements
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Users online (2,291)