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

Announcements

News and Announcements icon
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
    Microsoft Employee 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
    Microsoft Employee 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 552

#2
Valantis Profile Picture

Valantis 388

#3
11manish Profile Picture

11manish 375

Last 30 days Overall leaderboard