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 Automate
Unanswered

Switch problem

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

The execution of template action 'Switch' failed: The result of the evaluation of 'scope' action expression '@triggerOutputs()?['body/Highway']' is not valid. It is of type 'Object' but is expected to be a value of type 'String, Integer'.

 

how can i use switch for choice (drop dowm menu)

Categories:
I have the same question (0)
  • Ellis Karim Profile Picture
    12,066 Super User 2026 Season 1 on at

    I think the field you want is the value of the Highway.

     

    For example, I have a multi-choice column called TicketStatus.

    2021-12-22_17-31-26.png

    The Dynamic content I need to use in the Switch action is value of Ticket Status:

     

    2021-12-22_17-24-35.png

     

    For example, behind the scenes, TicketStatus data looks like this for the first item in my SharePoint list:

     

    "TicketStatus": {
     "@odata.type": "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
     "Id": 1,
     "Value": "Assigned"}

     

     

    TicketStatus Value is equal to "Assigned"  - which is what I need to use in the Switch action.

     

    Hope this helps.


    Ellis
    ____________________________________
    If I have answered your question, please mark the post as Solved.
    If you like my response, please give it a Thumbs Up.

     

     

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 791

#2
Valantis Profile Picture

Valantis 568

#3
Haque Profile Picture

Haque 535

Last 30 days Overall leaderboard