Forum Discussion
rgentile
Mar 29, 2019Brass Contributor
Quiz score available via Flow in Forms Pro?
Hello, Does anyone know if Forms Pro makes it possible to get a Quiz's Points Scored value using Flow? Specifically, I need to use a Flow to access the Points Scored values from the spreadshee...
- Apr 04, 2019
It does not appear MS Forms Pro makes a quiz's points scored available to Flow.
I created a MS Forms Pro Quiz
I created a Flow triggered when a MS Forms new response is submitted
I added MS Forms Get response details to the FlowI added a SharePoint Create item to the Flow
I then took the quiz and the Flow triggered
I checked the OUTPUTS in Create item and did not see any reference to 'points scored' in the JSON.
So, I'm thinking getting MS Forms Quiz points via Flow is still not possible.
If this is not a valid test or I am missing something, could someone please let me know?
Thanks
rgentile
Oct 03, 2019Brass Contributor
Hello gbenoit
We had to do what you are trying to avoid doing and it was a lot of work.
Requirements: Users would take a MS Forms’ quiz. The grade earned would be stored in a SharePoint list.
Our first attempt we let MS Forms determine the grade earned, but we could not get at the points scored. So, our approach changed to determining the grade earned in Flow.
Here is (a simplified version) what we ended up doing:
- Each question on the form is worth 1 point
- Created Flow triggered on form submission
- In the flow we had variables for number of questions and a points counter
- We had checks for three types of questions: radio buttons, checkboxes, and ranking
- We looped through the form Response Details and checked if the answer was correct
- If the answer was correct we added 1 to points counter variable, if answer was wrong we did nothing
- When all the answers were checked, we calculated the grade (points counter divided by number of questions)
- We wrote the grade and exam info (exam name, course, user info, date, etc.) to a SharePoint List
This does create the dependency that if a question or answer in the form changes, the Flow must be updated.
Note: we had to create 37 Flows, so we created a template Flow then copied each item in the Flow to the clipboard (new Flow feature, click on 3 dots on right of item and choose Copy to my clipboard). We created the new Flow and pasted in each item from the clipboard then, where necessary, updated the item. Using the Copy to my clipboard feature saved us a lot of time.
Good luck.
Lionel_Gueri
Dec 17, 2022Copper Contributor
Hi rgentile
Your post helped me a lot when I faced the same problem : Power Automate can't retrieve the score of a Ms Forms.
So I made a solution which works perfectly for my case.
- Made a Quiz in Ms Forms with questions that scored for 1 each, and with only one possible answer (because I don't know how to calculate the Score with a formula in Excel if multiple answers, see below)
- Populated an Excel File with the answers
- Added a column Score in the Excel with the following formula to check against the solution:
=SUM(IF(TabReponses[@[Question1]:[Question10]]=Solution!$A$2:$J$2;1;0))
This will sum all the '1', so when an answer cell is equal to the solution cell
- Get the line in the same Excel corresponding to the responder
- Get the score => one great thing is that the Excel formulas are recalculated automatically, I did not put a script or do anything, and I checked that my Excel file was closed
- Send an Email to the responder with its score
I hope this can helps others with dealing this missing functionnality of Forms + Power Automate !