Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
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?

  • GabrielStJohn Profile Picture
    on at
    Re: Flow choice field evaluating false when compared with string, or failing

    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

  • Zango Profile Picture
    76 on at
    Re: Flow choice field evaluating false when compared with string, or failing

    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

     

     

  • Verified answer
    v-xida-msft Profile Picture
    on at
    Re: Flow choice field evaluating false when compared with string, or failing

    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

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,631 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,991 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow