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

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / switch for a sharepoin...
Power Automate
Answered

switch for a sharepoint list Choice thinks it's a boolean while it's a string

(0) ShareShare
ReportReport
Posted on by 20

 

hi,

 

I have a list with a choice in it. These choices are just text. When I create a switch case statement in Microsoft flow. I get the following exception: 

ExpressionEvaluationFailed. De uitvoering van de sjabloonactie Schakeloptie is mislukt. Het resultaat van de evaluatie van de scope-actie voor de expressie @triggerBody()?['thechoice'] is ongeldig. Dit is van het type Boolean, maar er wordt een waarde van het type String, Integer verwacht.

 

=> Microsoft flow thinks my choice field is a boolean.

 

Strangly enough in the following post it is being said that this should just work:

https://powerusers.microsoft.com/t5/General-Flow-Discussion/Switch-case-based-on-SharePoint-choice-Field/td-p/40865

 

Thank you !

Categories:
I have the same question (0)
  • Erdem Profile Picture
    20 on at

    Sorry.. It was a boolean... 2 columns had almost the same name with one being a choice and the other being a boolean.

     

     

    STILL a Problem though: now it's giving following error message:

     

    ExpressionEvaluationFailed. De uitvoering van de sjabloonactie Schakeloptie is mislukt. Het resultaat van de evaluatie van de scope-actie voor de expressie @triggerBody()?['thechoice'] is ongeldig. Dit is van het type Object, maar er wordt een waarde van het type String, Integer verwacht.

     

     

    It thinks it's an Object instead of a string

  • Verified answer
    Erdem Profile Picture
    20 on at

     

     

    Okey, I see now that I  have to take the VALUE .... so if you have a choice field that is called "MyChoice"... you'll have to fill the Switch option with "MyChoice Value"

     

     

     

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!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 239 Super User 2026 Season 1

#2
David_MA Profile Picture

David_MA 177 Super User 2026 Season 1

#3
Kalathiya Profile Picture

Kalathiya 97 Super User 2026 Season 1

Last 30 days Overall leaderboard