Skip to main content

Notifications

Community site session details

Community site session details

Session Id : LbffKxRNf49QL41GIhIrhq
Power Automate - Building Flows
Answered

Send approval to specific people based on Form multiple choice response - 19 different options. Can select more than one option in form

Like (0) ShareShare
ReportReport
Posted on 9 Jul 2023 22:33:13 by 337

Hello!

 

Hoping for some help with a scenario I've got and described below...


1. In Form, user completes form and can select 1 or 19 options from a multiple choice question & submits (each answer represents a department, and each department has 3 people associated to it.)

2. Flow then sends approval to designated people from each answer selected. For example, if A and E are selected in the form, the approval must go to the people associated to department A and E.

 

I'm guessing the best way to do this may be a SharePoint list which has each persons email listed in one column and the department they belong to in another, for example

 

Josh | Department A

John | Department B

Mark| Department C

Sarah| Department D

Steve| Department E

 

So in the case mentioned above, Josh and Steve would be sent the approval request.

 

But in my actual scenario there is 19 departments and about 3 different people per department.

 

Any help or guidance on how to build a flow a flow to work like this would be greatly appreciated 🙂

 

Thanks,

Josh

  • emilyharrison Profile Picture
    6 on 15 Feb 2024 at 09:33:28
    Re: Send approval to specific people based on Form multiple choice response - 19 different options. Can select more than one option in form
    Spoiler (Highlight to read)
    Help with Teams Approval where there are multiple choices of approver
    Help with Teams Approval where there are multiple choices of approver

     Hi

    Can someone give me some guidance, I'm looking to create a start and wait for approval with the email address being fed from a multiple choice field in the form but im having the below error 

    emilyharrison_0-1707989567616.png

    emilyharrison_1-1707989591287.png

     

     

  • Jap11 Profile Picture
    337 on 10 Jul 2023 at 14:57:03
    Re: Send approval to specific people based on Form multiple choice response - 19 different options. Can select more than one option in form

    @Mira_Ghaly  - positive update!

     

    I got the expression to work and ran a test - all seems to be working 😄

     

    I'm going to run a few more tests, most likely tomorrow, with all 19 options in the SharePoint list. 

     

    I really appreciate your help - thank you!

  • Jap11 Profile Picture
    337 on 10 Jul 2023 at 13:21:58
    Re: Send approval to specific people based on Form multiple choice response - 19 different options. Can select more than one option in form

    @Mira_Ghaly 

     

    I've updated as per your screenshots and tested a run but ran into an issue. I think it may be related to the expression for the Answers array...

     

    This what I used:

     

    split(replace(replace(replace(outputs('Get_response_details')?['body'],'[',''),']',''),'"',''),',')
     
    However I'm not sure i have done this correctly, are you able to provide a screen recording so I know exactly how to get the response from my form. I'm not sure I've selected the correct option.
     
    JoshPullan11_2-1688995215110.png

     

    I really appreciate your patience in helping me, hopefully will get there soon!

     

    Thank you,

    Josh

     

     

     

  • Verified answer
    Mira Ghaly Profile Picture
    11,409 Super User 2025 Season 1 on 10 Jul 2023 at 11:29:10
    Re: Send approval to specific people based on Form multiple choice response - 19 different options. Can select more than one option in form

    @jap11 

    Sorry if I have confused you please follow the sample below i have tried to replicated your scenario as below:

     

    1. Initialize 2 variables answers and emails array , answers should hold the response from the microsoft form response

    Mira_Ghaly_0-1688988171272.png

    Expression for the Answers array:

    split(replace(replace(replace(outputs('Get_response_details')?['body/r8a667099fbd94265925bad11cf7da507'],'[',''),']',''),'"',''),',')

    Please note that you need to replace with the response from your form:

    outputs('Get_response_details')?['body/r8a667099fbd94265925bad11cf7da507']

     

    2. Loop on the answers array to get the approver list per each partner

    Mira_Ghaly_1-1688988385510.png

    3. Then loop on the approvers to append emails

    Mira_Ghaly_2-1688988463197.png

     

    4. Send approval outside loop

    Mira_Ghaly_3-1688988543693.png

     

     

     

  • Jap11 Profile Picture
    337 on 10 Jul 2023 at 10:56:12
    Re: Send approval to specific people based on Form multiple choice response - 19 different options. Can select more than one option in form

    @Mira_Ghaly 

     

    So i tried moving the start and wait for approval outside the loop however it is not failing. Here is the error:

     

    JoshPullan11_1-1688986550644.png

     

    JoshPullan11_0-1688986515637.png

     

    "Let's go one step back you need to split the multiple choice response then you can Get items on each of the options and do the existing logic." - apologies I'm not sure what you mean / how to do this?

  • Mira Ghaly Profile Picture
    11,409 Super User 2025 Season 1 on 10 Jul 2023 at 10:38:24
    Re: Send approval to specific people based on Form multiple choice response - 19 different options. Can select more than one option in form

    @jap11 

    Let's go one step back you need to split the multiple choice response then you can Get items on each of the options and do the existing logic.

     

  • Mira Ghaly Profile Picture
    11,409 Super User 2025 Season 1 on 10 Jul 2023 at 10:31:31
    Re: Send approval to specific people based on Form multiple choice response - 19 different options. Can select more than one option in form

    @jap11 

    Also the send approval outside the apply to each both of them.

     

  • Mira Ghaly Profile Picture
    11,409 Super User 2025 Season 1 on 10 Jul 2023 at 10:30:26
    Re: Send approval to specific people based on Form multiple choice response - 19 different options. Can select more than one option in form

    @jap11 

    The problem now is the Get Items is returning data, what is the column type of partner in SharePoint?

     

  • Jap11 Profile Picture
    337 on 10 Jul 2023 at 10:24:40
    Re: Send approval to specific people based on Form multiple choice response - 19 different options. Can select more than one option in form

    @Mira_Ghaly 

     

    Ah right I see - I've updated the OData to include the dynamic content from the form response.

     

    In the example I submitted, I selected 2 choices from the 19 on the form, which in the run history has pulled through correctly on the get items, however the send and wait for approval has not gone to the users.

     

    The run history is showing the apply to each steps greyed out but with no errors, so i'm not sure what is going on

     

    JoshPullan11_1-1688984577140.png

     

  • Mira Ghaly Profile Picture
    11,409 Super User 2025 Season 1 on 10 Jul 2023 at 10:00:58
    Re: Send approval to specific people based on Form multiple choice response - 19 different options. Can select more than one option in form

    @jap11 

    I believe the issue is here  in the OData from where you are getting the partner .. is it from the form response?

    Then you should pass it , can you check the flow run history to see the steps execution and where it get stuck?

     

    Mira_Ghaly_0-1688983188524.png

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Automate - Building Flows

#1
stampcoin Profile Picture

stampcoin 61

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 47 Super User 2025 Season 1

#3
rzaneti Profile Picture

rzaneti 31 Super User 2025 Season 1

Overall leaderboard