web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Flow choice field eval...
Power Automate
Answered

Flow choice field evaluating false when compared with string, or failing

(1) ShareShare
ReportReport
Posted on by 76

Hi

 

For my flow i am trying to make a switch statement run only if the item is at a specific stage determined by a column.

 

I am trying to compare this column value with the string that i expect it to be equal.

 

I am getting an error saying cannot compare object with string but im not sure why the result of my status.value column is not evaluating to true

 

Overview of my flow:

https://i.imgur.com/4XZXylJ.png

Error message:

 https://i.imgur.com/RZdwHok.png

The output, why is the mocStatus Value an object?

 https://i.imgur.com/khyyiXH.png

 

 Is this more appropriate for the sub building flows?

Categories:
I have the same question (0)
  • Verified answer
    v-xida-msft Profile Picture
    on at

    Hi @Zango,

     

    I have made a test on my side and don't have the issue that you mentioned. My flow's configuration as below:2.JPG

    Note: The mocStatus column is a Choice type column in my SharePoint list.

     

    Within Condition box, we could also click "Edit in advanced mode", type the following formula:

    @equals(triggerBody()?['mocStatus']?['Value'], 'Unplanned initial request')

    The flow works successfully as below:3.JPG

     

     

    Please check if you have filled proper value within the Condition box of your flow. In addition, please consider take a try to clear cache of your browser and re-create your flow, then try it again to check if the issue is solved.

     

     

    Best regards,

    Kris

  • Zango Profile Picture
    76 on at

    Thanks, I have rebuilt my flow and it is working now, I didn't really change anything though, just deleted and rebuilt the update item part Man Frustrated

     

     

  • GabrielStJohn Profile Picture
    on at

    Hello, @Zango!

     

     

    Thank you for posting to the Microsoft Flow Community forums! I see that in one of the above replies you were offered a solution to your issue! If you feel that the reply offered an applicable and satisfactory solution, please click "Accept as Solution" so that other users can find this information and utilize it easily!

     

    Thank You!

    -Gabriel

    Flow Community Manager

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 503 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard