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

Is it possible to do advanced switch case?

Hi there, 

 

I was wondering if you could do an advanced expression using Microsoft flows switch case. 

 

Switch_Case.PNG

 Could I implement something like the following:

 

or(
if(@contains(@triggerBody()?['{FilenameWithExtension}'], <pattern 1>),variable = <pattern 1>),
if(@contains(@triggerBody()?['{FilenameWithExtension}'], <pattern 2>),variable = <pattern 2>),
if(@contains(@triggerBody()?['{FilenameWithExtension}'], <pattern 3>),variable = <pattern 3>),
if(@contains(@triggerBody()?['{FilenameWithExtension}'], <pattern 4>),variable = <pattern 4>),
)

 

So if a specific pattern is found, then a particular case can be executed. Would I also be able to do the same with File Content to search for patterns like command lines grep regex? 

 

I also wanted to know where I could learn more advanced syntax expressions/implementations for Logic Apps/Microsoft Flow aside from Microsofts Logic App Documentation section. 

 

1 ACCEPTED SOLUTION

Accepted Solutions
douglasromao
Level 8

Re: Is it possible to do advanced switch case?

Hi @solisruj,

 

You could post this idea on https://powerusers.microsoft.com/t5/Flow-Ideas/idb-p/FlowIdeas  this is a way for the team get it on the road map and implement this kind of feature.

 

Regards,

Douglas

1 REPLY 1
douglasromao
Level 8

Re: Is it possible to do advanced switch case?

Hi @solisruj,

 

You could post this idea on https://powerusers.microsoft.com/t5/Flow-Ideas/idb-p/FlowIdeas  this is a way for the team get it on the road map and implement this kind of feature.

 

Regards,

Douglas

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020

thirdimage

Flow 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 Flow Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 186 members 4,484 guests
Please welcome our newest community members: