I have a help ticket form that my users fill out, and depending on what division/department they select, will determine who the authorization will need to go to. SO, I tried doing conditions on this, with setting a variable up. WELL, I've found out you can only nest up to 8 conditions, how do you suggest I set this up. I'm new to doing flow, so, this was my first thought on how to do this, what are others ideas?
Here is the scenario:
I'd do a condition, if Department is Accounting, then, the condition is true and it will go to Jim Smith, so, I'd set the variable up to be the email address for Jim Smith and then proceed on, if not, then, in the NO, I'd do another condition, and say, if Deparment is "IT Reporting", then, the condition is true and it would go to Bill Smith, so, I'd set the variable up to be the email address for Bill Smith and proceed on and so on and so forth. I have like 12 of these departments. I'm guessing there is an easier way, but, I just don't know how at the moment to do it in flow.
If the below flow is used with SharePoint, you can create a list with configurations like the department and the approvers. Then based on the department, you can pick the users from the list and then send the actions to the approver.
Hope it helps, please like it or mark it as a solution if it resolves ur clarification or issue
If you are always testing for the department, but with different values you can replace your If() statements with a Switch(). The switch statement will choose a different branch based on the value you are checking.
The reason why I suggested the SharePoint list is in-case if there is any update to the approves in the department or if you want to add more than one approves, then you can simply change the value in the list without having to update the flow.
@srmcmains a switch based on case department = IT or department = Marketing etc is definitely the way to do this providing the number of "cases" is less than or equal to 27 as I recall that is the limit. After that you need to have sub-switches.
Check out the new Process Advisor community forum board!
Check out new user group experience and if you are a leader please create your group
Participate in the Power Virtual Agents Community Challenge
Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.