cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Zango
Level: Powered On

Can you use expressions for switch?

Hi, 

 

I have been setting up email reminders for actions approaching/going over their due dates.

 

In a condition I can use "is equal to" and then my expression for the date.

due date condition.PNGcondition and expression works

But in a switch statement it doesn't bring up the wizard to set the Equals text box to be an expression

switch no dynamic content.PNGswitch not prompting expression

I expected to be able to use content like this

expression wizard.PNGexpected expression wizard

Is this by design and I should just use multiple conditions?

 

1 ACCEPTED SOLUTION

Accepted Solutions
Dual Super User
Dual Super User

Re: Can you use expressions for switch?

Hi @Zango 

 

In a switch case action you cannot define a variable or use the dynamic content selector because by default the value of every case in a switch case scneario needs to be static. 

 

You could refer to this blog for more ideas on using the switch case feature and the like ones. 

 

https://sharepointmaven.com/3-ways-to-build-multiple-conditions-in-microsoft-flow/

 

Hope this Helps!

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

1 REPLY 1
Dual Super User
Dual Super User

Re: Can you use expressions for switch?

Hi @Zango 

 

In a switch case action you cannot define a variable or use the dynamic content selector because by default the value of every case in a switch case scneario needs to be static. 

 

You could refer to this blog for more ideas on using the switch case feature and the like ones. 

 

https://sharepointmaven.com/3-ways-to-build-multiple-conditions-in-microsoft-flow/

 

Hope this Helps!

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

Helpful resources

Announcements
firstImage

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

firstImage

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Solution Authors
Top Kudoed Authors
Users online (5,096)