Skip to main content

Notifications

Community site session details

Community site session details

Session Id : 0uNoqkH8h5SdHpwdYFuzgK
Power Automate - Building Flows
Unanswered

How to use conditions when connecting to an MS Form question with more than one answer

Like (1) ShareShare
ReportReport
Posted on 9 Aug 2023 20:49:18 by 8

Hey all,

 

I have been trying to create a flow that does the  following:

 

- Automatically trigger when a new MS Form response is submitted

- Use conditions to check if the answers they picked in the form are correct, if so award 10 points to a variable

- Use the 'Compose' action to sum up all the awarded points

- Transfer the desired information into an Excel table.

 

Now here is the issue. One of my questions within the MS Form has two correct answers, and I cannot figure out how to properly run that through my flow. I attached the screenshots of what I am trying to do. and what the output is. I really would appreciate if someone could help me come up with an answer. 

 

Thank you!

  • ramysss Profile Picture
    2 on 20 Feb 2024 at 10:19:15
    Re: How to use conditions when connecting to an MS Form question with more than one answer

    In Microsoft Forms if I have the next case Question: Book the appropriate training program date for you. Options: February 21st February 22nd February 23rd Condition: No more than 20 people can choose each date. Additional English phrases that may be helpful: Limit the number of responses: Only allow 20 people to select each option: Once 20 people have selected an option, it will become unavailable. What do I do to resolve this case?

  • trice602 Profile Picture
    13,760 Super User 2025 Season 1 on 09 Aug 2023 at 23:08:15
    Re: How to use conditions when connecting to an MS Form question with more than one answer

    Understood.  I know after I "post scores" I do get the scores in Excel but that is not automated however, you could post the scores using Power Automate Desktop and drive the scores into Excel.  Tom

     

    trice602_0-1691622466953.png

     

  • Kukaicho Profile Picture
    8 on 09 Aug 2023 at 22:51:58
    Re: How to use conditions when connecting to an MS Form question with more than one answer

    Hey trice602,

     

    I appreciate your response. My Form is already a quiz, so it does score itself. What I was trying to do was to export the score into an excel sheet. Still, thanks for your input!

  • Kukaicho Profile Picture
    8 on 09 Aug 2023 at 22:50:49
    Re: How to use conditions when connecting to an MS Form question with more than one answer

    Hey SamLed,

     

    I appreciate your response. I'll try this out and see if it works for me. Thanks for your input. 

  • SamLed Profile Picture
    2,332 Moderator on 09 Aug 2023 at 22:07:36
    Re: How to use conditions when connecting to an MS Form question with more than one answer

    Hi Tom,

    Of course, I more a SharePoint specialist and a senior coder (not to say old 😉) and I don't know forms so well. I must admit your solution looks easier to implement and to maintain, codeless solution is always better (even if we can't really qualify PA as code), quite sure you can also export results to Excel as needed by Kukaicho.

    Sam

  • trice602 Profile Picture
    13,760 Super User 2025 Season 1 on 09 Aug 2023 at 21:45:31
    Re: How to use conditions when connecting to an MS Form question with more than one answer

    Hi @SamLed  - I like what you have here.  The quiz feature is so well built for quizzes with shuffled questions, scoring, reasons for correct or incorrect answers, I no longer do anything in PA for quizzes; well, except for sending the results to a SharePoint List maybe.  I've also created a certification of completion at the end for those that passed the test and emailed it to them and their supervisor!  Always glad to help! Tom

  • SamLed Profile Picture
    2,332 Moderator on 09 Aug 2023 at 21:42:19
    Re: How to use conditions when connecting to an MS Form question with more than one answer

    Sorry trice602, didn't saw you've already answered. Your answer looks nice, I've focused on how to do with flow not with forms.

  • trice602 Profile Picture
    13,760 Super User 2025 Season 1 on 09 Aug 2023 at 21:39:35
    Re: How to use conditions when connecting to an MS Form question with more than one answer

    I forgot to include, yes you can have multiple answers and score accordingly too.  

    trice602_2-1691617165200.png

     

  • SamLed Profile Picture
    2,332 Moderator on 09 Aug 2023 at 21:38:14
    Re: How to use conditions when connecting to an MS Form question with more than one answer

    Hi,

    See these sample forms and flow to illustrate:

    SamLed_1-1691616420030.png

     

     

    SamLed_0-1691616365059.png

     

    • Flow use "When a new response is submitted" trigger
    • initialize an integer 'Score' variable
    • Add "Get response details" action
    • Add "Apply to each" action and set input with JSON converted "Question" dynamic content: in my exemple the expression is: 
      json(outputs('Get_response_details')?['body/r36552ba415b546c6850d31d723fb6b61'])
       
      SamLed_3-1691616803132.png
    •  Add a condition to check if current item starts with the letter you gave to right answer:

    SamLed_4-1691616914038.png

    • Increment 'Score' variable when true. I increment by 5 if one answer is correct, so both selected gives 10.

      ______________________________________________________________

      If I have answered your question, please Accept the post as solution.
      If you like my response, please Thumbs Up.

     

  • trice602 Profile Picture
    13,760 Super User 2025 Season 1 on 09 Aug 2023 at 21:37:50
    Re: How to use conditions when connecting to an MS Form question with more than one answer

    Hi @Kukaicho ,

     

    I'll ask a question you have probably already investigated:  have you considered just using the Quiz forms in MS Forms?  I love the idea of assigning points to the correct answers and validating reasons why a question was correct or incorrect.  The math is completely calculated for you and you can give a pass or fail.  Please mark as a solution if this helps you move forward!  Always glad to help! Tom

     

    trice602_0-1691617019993.png

    trice602_1-1691617059388.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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,658 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,999 Most Valuable Professional

Leaderboard