Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Unanswered

Using Switch statement

(0) ShareShare
ReportReport
Posted on by 25

I have a Flow. The flow returns a list of pre-existing records (D365). I then have a switch statement on one of the fields in those records. The Flow works to the point of the Switch record. While it doesn't fail, none of the Switch Cases execute.

Appreciate any assistance anyone can offer.

 

Peter.

  • Pstork1 Profile Picture
    66,026 Most Valuable Professional on at
    Re: Using Switch statement

    If you feed the records to the switch one at a time using an apply to each.  And then evaluate the text field, yes the switch should work whether the value has changed or not.

  • Peter A Clements Profile Picture
    25 on at
    Re: Using Switch statement

    Maybe a more specific question might help. Does a Switch statement work when the record is in place and hasn't changed? But the value is different across the list of records returned.

    Peter.

  • Peter A Clements Profile Picture
    25 on at
    Re: Using Switch statement

    Hi, it is a text field. That's useful to know tho!

     

    Peter

  • Pstork1 Profile Picture
    66,026 Most Valuable Professional on at
    Re: Using Switch statement

    What kind of field are you trying to run the switch on?  Switches are case sensitive and only work on text values.

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

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,702 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,026 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow