Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Unanswered

Switch block is skipping a case, even when the condition is met.

(0) ShareShare
ReportReport
Posted on by

I have a flow where a Switch block sends an approval request to a user, based on a form question selection.

The form question is being properly read, as per prior steps are working ok.

 

However, when the switch block is activated, it skips (marks as false) all of the given conditions, even the one that is true:

Capture.PNG

 

Here's my entire flow:

 

Flow.JPG

  • efialttes Profile Picture
    14,756 on at
    Re: Switch block is skipping a case, even when the condition is met.

    Hi!

    Sorry for the misunderstanding! I initially thought your switch was evaluating the Approval result.

    My suggestion is, to add a 'Compose' action block just before the Switch ad assign as its input the same dynamic content you assigned as the Switch input. THis way you can reexecute the flow and inspect its results.

     

    A usual problem is a extra space in your data ,so no matter it looks the same, since Switch requests exact match it will fail. Assuming you stored the data to be evaluated in a string variable called 'myInputData', you can use replace() to remove all spaces by means of the following expression:

    replace(variables('myInputData'),' ','')

    ...and now compare it against

    JosePabloGonzalez

     

    You can also use toUpper() to avoid mismatches between capital letters and small letters

     

    Hope this helps

  • Community Power Platform Member Profile Picture
    on at
    Re: Switch block is skipping a case, even when the condition is met.

    Hi, thanks - I updated my original message. Thanks

  • efialttes Profile Picture
    14,756 on at
    Re: Switch block is skipping a case, even when the condition is met.
    Hi!
    Is your Switch evaluating Outcome output?
    Please share a screenshot from your flow design, ensuring details from your switch are displayed
    Gracias!

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

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

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,906 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow