cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
sarath_123
Helper I
Helper I

flows with auto approval

Hi team,

I have a MS flow which checks some data from SQL table, in my SQL table i have columns stage 1, stage 2, stage 3 etc., till stage 20

Each stage will be approved and the status for that stage ("completed") will be updated into table.

Here stage 1 and 2 will be manual approval which means (completed) status updated into sql by manually using store proc, but stage 3 is an auto approve stage where only if both Stage 1 and stage 2 status is "completed" then stage 3 should be auto approved and status in table should be updated as "Completed" for stage 3.

Also if any of the stage is not completed it needs to check repeatedly in some intervals and run the flow.

 

example:

Stage 1 status is "completed" and stage 2 status is "In progress" then stage 3 should not be approved, the flow should check in some intervals until both stages 1 and 2 are "Completed" only then it should trigger for stage 3 and update status as completed.

 

please help me implement this in MS Power Automate

Thanks

Sarath

1 ACCEPTED SOLUTION

Accepted Solutions
v-yiwenxie-msft
Microsoft
Microsoft

Hi @sarath_123 

 

Here I created a flow using sharepoint as connector, while you can use similar trigger or action of SQL.

 

Every time a change has been made to the table, the flow will be triggered to check the status of ‘stage1’ and ‘stage2’.

So the trigger ‘when an item is created or modified’ can meet your need of checking repeatedly for the value of certain column.

1.27-4.PNG1.27-5.PNG

 

Best Regards,
Community Support Team _ Kira Xie
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

3 REPLIES 3
v-yiwenxie-msft
Microsoft
Microsoft

Hi @sarath_123 

 

Here I created a flow using sharepoint as connector, while you can use similar trigger or action of SQL.

 

Every time a change has been made to the table, the flow will be triggered to check the status of ‘stage1’ and ‘stage2’.

So the trigger ‘when an item is created or modified’ can meet your need of checking repeatedly for the value of certain column.

1.27-4.PNG1.27-5.PNG

 

Best Regards,
Community Support Team _ Kira Xie
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

Hi Kira,
I need to use do-until function to implement this 

Apply to each will not suit here 

My do until loop should check every 30 mins and the max wait duration will be 1 month

Thanks-Sarath

v-yiwenxie-msft
Microsoft
Microsoft

Hi @sarath_123 

 

If you use do until, then you cannot use 'apply to each' in 'do until'.

In my understanding, you want to check whether all the column values for 'Stage1' and 'Stage2' is equal to 'completed'. Without apply to each, the flow can't check all the column values above.

 

If I've misunderstood, please feel free to tell me. And could you tell me why you need do-until? It seems easier to achieve your need with apply to each if I'm not misunderstanding your need.

 

Best Regards,
Community Support Team _ Kira Xie
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Users online (48,889)