cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
StephCORKING
Level: Powered On

Microsoft flow condition returns false on a text value

Hi 

I appear to be a little bit useless with the new conditions in Microsoft Flow.   For example, I have a simple case:

In a list, I have a text field that contains a value.   In my flow, I check the value of this field to determine what action to take.  However, even though the field value is correct (and I double check in a get item), the condition still returns false.

Here is my flow and if anyone has any idea what I am doing wrong, I would be really grateful.

Capture.JPG

 

Flow conditions:

Cap2.JPG

 

Result

Cap3.JPG

2 ACCEPTED SOLUTIONS

Accepted Solutions
Dual Super User
Dual Super User

Re: Microsoft flow condition returns false on a text value

I don't think its your text field.  I suspect its the Status field since the incoming value isn't in quotes I don't think its considered a string, but that is what you are comparing it to.  Where does the status come from?



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

Community Support Team
Community Support Team

Re: Microsoft flow condition returns false on a text value

Hi @StephCORKING ,

 

It seems that I understand what @Pstork1 means. If the type of DestText field is Choice, we need to configure Choice Value in Condition.

Image reference:

11.PNG

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

7 REPLIES 7
Dual Super User
Dual Super User

Re: Microsoft flow condition returns false on a text value

I don't think its your text field.  I suspect its the Status field since the incoming value isn't in quotes I don't think its considered a string, but that is what you are comparing it to.  Where does the status come from?



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

StephCORKING
Level: Powered On

Re: Microsoft flow condition returns false on a text value

Hi @Pstork1 

The process is that when the item is created, the field is set to CREATED and during the first run of the flow, the update item action sets the field to PROCESSING.  Then in the second run of the flow, I check to see if the if the item is set to PROCESSING and if the destination value (which is a radio button for the user) is set to Nice.


Even if I remove the Processing field and try to run it with the second part of the statement, it still returns false.   

Also, I noticed that if I used 'starts with' or 'contains', the process fails with an error saying that the value is null.....

 

 

Dual Super User
Dual Super User

Re: Microsoft flow condition returns false on a text value

Try putting a Variable right before the condition and set it equal to DestText that way you can look at the actual string that is being evaluated.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.
StephCORKING
Level: Powered On

Re: Microsoft flow condition returns false on a text value

@Pstork1 

Thanks.  I'll try that .

Highlighted
StephCORKING
Level: Powered On

Re: Microsoft flow condition returns false on a text value

Hi @Pstork1 

So, I put everything into quotes, as per your first suggestion, and now it's working!   I thought I read someone on here that you didn't need to put the value in quotes...

 

I'll keep trying it this way for the other cases I have to write and see how it goes.

 

Thank you very much for your help.

Steph

Dual Super User
Dual Super User

Re: Microsoft flow condition returns false on a text value

That wasn't actually what I was suggesting Smiley Happy but I'm glad it works.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.
Community Support Team
Community Support Team

Re: Microsoft flow condition returns false on a text value

Hi @StephCORKING ,

 

It seems that I understand what @Pstork1 means. If the type of DestText field is Choice, we need to configure Choice Value in Condition.

Image reference:

11.PNG

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (4,833)