web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to use conditions ...
Power Automate
Unanswered

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

(1) ShareShare
ReportReport
Posted on 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!

Categories:
I have the same question (0)
  • trice602 Profile Picture
    15,404 Super User 2025 Season 2 on at

    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

     

  • SamLed Profile Picture
    2,338 Moderator on at

    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
    15,404 Super User 2025 Season 2 on at

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

    trice602_2-1691617165200.png

     

  • SamLed Profile Picture
    2,338 Moderator on at

    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
    15,404 Super User 2025 Season 2 on at

    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,338 Moderator on at

    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

  • Kukaicho Profile Picture
    8 on at

    Hey SamLed,

     

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

  • Kukaicho Profile Picture
    8 on at

    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!

  • trice602 Profile Picture
    15,404 Super User 2025 Season 2 on at

    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

     

  • ramysss Profile Picture
    2 on at

    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?

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard