Skip to main content

Notifications

Power Automate - General Discussion
Unanswered

Switch problem

(0) ShareShare
ReportReport
Posted on by

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)

  • Ellis Karim Profile Picture
    Ellis Karim 10,556 on at
    Re: Switch problem

    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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,580

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,909

Leaderboard