Send an approval task to a user based on the answer from one of multiple branched questions
We have a flow, trigged from a form submission, that sends an approval task to a member of staff that is selected from one of the form questions. To do this I initialised a variable based on the output of the questions, feed it into a data compose operation to set the correct formatting of the users name to match their AD UPN, and then fed the output into the get user profile (v2) action.
This works fine (although I'm open to better ways of doing it?), but the issue is the users now want to change the form to have multiple lists of approvers, which sure a specific list of names depending on the previous question, and I'm not sure how to create a initialise a variable in this scenario.
Basically, the form has a drop down menu question, asking to select an approval level. There are 5 choices. Depending on the choice, they are then presented with a list of authorised approver names. How do I feed the answer from any of all these approval levels into the Approval flow?