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
Solved! Go to Solution.
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.
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.
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.
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.
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
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.
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
User | Count |
---|---|
7 | |
2 | |
2 | |
2 | |
1 |