Dear All,
I am trying to work on a flow based on the following multiple conditions with an existing old Workflow.
The Conditions for existing workflow are as follows for a leave workflow:
I cant use a default approval template as this functionality is customized.
I have tried the following flow with conditions & need some help with the flow I have created
The following is the flow.
2) Expanding the Line Manger Email Not Sent condition.
Here I want to set the column value to Yes, once the Mail is sent same as 2010 Workflow.
3)
As seen in 2010 Workflow there is a option of If else conditions here I am able to keep only few conditions and also Set EMail sent value should be checked.
I need help in completing this workflow with if else conditions, as of now I am using multiple ifs also Set EMail sent value should be checked.
4)
5)
(As there are multiple conditions I am facing difficulty in keeping multiple IF conditions, please help me with the flow).
Many Thanks.
Eswar
I would replace all the If/ElseIf statements with a switch. You may have to save the status first as a string variable, but that would clean up the logic a lot. A lot of the rest then becomes simple If conditions under the appropriate branch for the switch. The one exception is that you probably want to have a condition first that checks ApprovalConditionAccepted to bypass the switch if its NO
Can you please show it in a flow in a few steps.
Many Thanks.
Here are some screenshots to give you an idea
Overall
Beginning Logic (trigger on created or modified, save status as a string, check to see if ApprovalConditionAccepted
Then Switch based on the current status If ApprovalConditionAccepted is Yes
Then under each switch do the logic for that status setting - Pending Line Managers approval as an example
I don't have a list with all the columns you reference in your 2010 workflow, but hopefully this gives you an idea.
Dear Pstork1,
Thanks for the steps provided could you please elaborate how to use set values in the flow & then use the Switch Statement.
Please find the column names of the list :
Conditions :
Thanks,
Eswar
The values you need are already in the dynamic content dialogue box for the flow. You just plug them in to the right fields in the actions. If you aren't sure how to do that I would suggest starting with some basic Power Automate tutorials.
https://docs.microsoft.com/en-us/learn/modules/introduction-power-automate/
Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.
Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!
User | Count |
---|---|
8 | |
5 | |
4 | |
3 | |
3 |