cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
SylvieLet17
Helper V
Helper V

Contains Condition always false

Hi all, 

I have checked all the similar questions here but nothing worked for me. It's not a case sensitivity issue. 

I have a flow like this:

When a (sharepoint list) item is created or modified

Get item

Initialize groupsVar (Array of choice field with multiple selections enabled)

Condition: If groupsVar contains "Mission", send an email. 

 

One of the possible choices is Mission Groups. I have tried 'Contains "Mission Groups" ' but it still does not work. 
I even added a compose with "Contains "Mission groups" ' which is also returning false. compose.pngCompose2.png

1 ACCEPTED SOLUTION

Accepted Solutions
SylvieLet17
Helper V
Helper V

Solved it, I guess it's because the output is considered an object, not a string. It doesn't throw an error, but it isn't able to register the word in the string because it's an object. That's my guess anyway. 

The fix was to use a compose action, with formula: 

string(variables('groupsVar'))
to convert the object into a string, and then I used the compose outputs in my condition. 

View solution in original post

2 REPLIES 2
SylvieLet17
Helper V
Helper V

Solved it, I guess it's because the output is considered an object, not a string. It doesn't throw an error, but it isn't able to register the word in the string because it's an object. That's my guess anyway. 

The fix was to use a compose action, with formula: 

string(variables('groupsVar'))
to convert the object into a string, and then I used the compose outputs in my condition. 

View solution in original post

@SylvieLet17 

 

Hi - could you please post an image of flow? 

I am having issues with my conditions and keen to give this a go. 

Thanks, 

Summer 

Helpful resources

Announcements
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

MSFTBizAppsLaunchEvent

Experience what’s next for Power Virtual Agents

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Users online (51,428)