Forum Discussion

nima_einarmattsson's avatar
nima_einarmattsson
Copper Contributor
Nov 28, 2019
Solved

Forms to Sharepoint

I have a Microsoft Form with 20 questions.  I know how to export the answers to a Sharepoint-list but I have a challenge I've been struggling with for a few days.    A simple transfer will give me...
  • RobElliott's avatar
    Nov 28, 2019

    Hi nima_einarmattsson, a way to do this is with Power Automate (Flow). 

     

    First of all create your list with the Title column for the responder's email address and then a single line of text column for each question Q1 - Q10 and then another single of text column for called Q11-20 which will hold the value of whichever of the answers is completed.

     

     

    1. I've made the first 10 questions to have required answers:

     

    2. The second set of 10 questions are optional:

     

     

    3. Then in the flow the trigger is a Forms When a new response is submitted. The first action is then to Initialize a string variable. This will later on hold the answer from questions 11 -20. The next item is to get the response that was submitted:

     

     

    4. The next action is to append to the string variable the answers from the Get response details section in the dynamic content box. What I've done here is also to add the question number so that later you know which question the user has answered.

     

     

    5. The next action is a SharePoint Create item. Select the site and list and add in the responder's email and the answers to the first 10 questions in the relevant field from the dynamic content. Finally you add the variable into the Q11-20 field.

     

     

    When the user submits the form with the required answers 1-10 and the answer they've chosen from 11-20 the result will be as follows. It shows which question number has an answer and what that answer is.

     

     

    Hope that does what you want and that it helps.

     

    Rob
    Los Gallardos

    Microsoft Power Automate Community Super User

     

Resources