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

Multiple if condition like SharePoint designer

Hi All,

 

In sharePoint designer i can create multiple if statements (with out else) like below

 

if status equels waiting

some statements 

if status equels rejected 

some statements 

if status equels approved 

some statements 

if status equels approved 

stop the workflow 

 

here the control checks all the conditions and execute the one which satisfies the conditions. i e each time an item is modified it checks all the conditions and executes. is there any way we can do this in flow

1 ACCEPTED SOLUTION

Accepted Solutions
Dual Super User
Dual Super User

Re: Multiple if condition like SharePoint designer

@rinu007 

 

The switch case pattern should work

 

Here is a blog by serge luca on this

https://sergeluca.wordpress.com/2018/01/21/pattern-for-implementing-state-machines-with-microsoft-fl...

 

There is also a more scalable pattern for State Machine style Flow Approvals

https://sergeluca.wordpress.com/2018/11/26/new-flow-state-machine-pattern-with-unlimited-running-tim...

 

Regards,

Reza Dorrani

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

View solution in original post

6 REPLIES 6
Dual Super User
Dual Super User

Re: Multiple if condition like SharePoint designer

@rinu007 

 

Use the Switch action in Microsoft Flow

 

Regards,

Reza Dorrani

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

rinu007
Level: Powered On

Re: Multiple if condition like SharePoint designer

Thanks Reza

i am trying to create a leave applicaion form with approval, rejection steps from both manager and hr.

 

I have taken your advice and created below. not sure if this is the correct way if doing this.

 

Capture.PNG

Dual Super User
Dual Super User

Re: Multiple if condition like SharePoint designer

@rinu007 

 

Do you have a flowchart describing the process for the leave tracking app you are trying to build

rinu007
Level: Powered On

Re: Multiple if condition like SharePoint designer

Hi Reza,

Drawing2.jpg

Please see the above flow to get an understanding of what i am trying to do.

Dual Super User
Dual Super User

Re: Multiple if condition like SharePoint designer

@rinu007 

 

The switch case pattern should work

 

Here is a blog by serge luca on this

https://sergeluca.wordpress.com/2018/01/21/pattern-for-implementing-state-machines-with-microsoft-fl...

 

There is also a more scalable pattern for State Machine style Flow Approvals

https://sergeluca.wordpress.com/2018/11/26/new-flow-state-machine-pattern-with-unlimited-running-tim...

 

Regards,

Reza Dorrani

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

View solution in original post

rinu007
Level: Powered On

Re: Multiple if condition like SharePoint designer

Thanks Reza,

 

I was able to get it to work the way i wanted with the links you provided.

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

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

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

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 Kudoed Authors (Last 30 Days)
Users online (5,107)