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?
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
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
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:
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:
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
WarrenBelz
146,631
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,991
Most Valuable Professional