Replicating a SharePoint2013 Stage workflow in Power Automate.

 This is an interesting scenario. Now after MS has deprecated SP 2010 workflows, i got a request for creating a SP 2010 workflow in Power Automate. However, on my analysis I found out that the 2010 workflow was triggered by a SharePoint 2013 workflow.

This made it very interesting as now I had to not only replicate the 2010 workflow, but also its parent  2013 workflow. 

Now to make matters worse 2013 workflow was a long workflow with multiple stages and each stage having separate switch statement for comparing the values of Status.


Power automate has no feature in itself to implement Stage workflows.

But it has a prebuilt template of State machine process. We can use this to achieve State machine workflow.



What we have in this template is a Do Until loop having a Switch condition .



What this means is status is evaluated till it becomes equal to Completed.

So it goes from one Switch condition to another and loops out when it becomes equal to Completed.

Caution: Be very particular about what conditions you use inside do loop else it can get into those limits loop triggering multiple times for even one item modification.



Comments

Popular posts from this blog

Creating Nested Galleries in Power Apps. (Parent-Child Relationship)

How to reset a datepicker control in PowerApps?

Reset () function failing to work on Edit form for Combo boxes in Power App.