Skip to main content

Notifications

Power Automate - Using Connectors
Unanswered

Microsoft Forms Variables into Flow

(0) ShareShare
ReportReport
Posted on by 6

Hi,

I had created a Survey in Forms and added variables to the forms to capture First Name, Last Name, Email and a Ticket Number.

These are captured successfully in personalized data section. But there was no option to export all these details to excel. 

Below is the link: The Name, Email, Tickets are dynamically changed and sent to the user.

 

https://forms.office.com/FormsPro/Pages/ResponsePage.aspx?id=responseIDof the form&ctx={"First Name":"Victor","Last Name":"John","Ticket":"INC000000000001","Email":"user@domain.com"}

 

And data captured in Form is as below.

 

R1.jpg

 

We created a flow to capture these as a sharepoint and it works. How ever am not able to retrieve the parameters {"First Name":"Victor","Last Name":"John","Ticket":"INC000000000001","Email":"user@domain.com"} in the flow. Is there a way to do this ?

 

below is the flow.

 

R2.jpg

  • v-bacao-msft Profile Picture
    v-bacao-msft on at
    Re: Microsoft Forms Variables into Flow

     

    Hi @coderv9 ,

     

    I am afraid that this cannot be achieved through the functions provided in the MS Forms connector.

     

    As mentioned in my last post, we can get the answers submitted by the user through the get response details action. And the Dynamic content output by Get response details actions represents the answer submitted by the user.

     

    If the values you need cannot be obtained in the Dynamic content option, then those data cannot be obtained through Flow.

     

    Best Regards,

  • coderv9 Profile Picture
    coderv9 6 on at
    Re: Microsoft Forms Variables into Flow

    Hi @v-bacao-msft ,

     

    We create forms in formspro which could be submitted by anyone without login. The links are unique and contains user information and will be shared only with particular users.

    Eg: Below

     

    "https://forms.office.com/FormsPro/Pages/ResponsePage.aspx?id=responseIDof the form&ctx={"First Name":"Victor","Last Name":"John","Ticket":"INC000000000001","Email":"user@domain.com"}"

     

     

    So to track which incident user is providing the feedback we use survey variables. These data's are captured in Forms Portal but we dont have option to export these. So we use flow to connect forms with SharePoint and capture the details.

     

    Unfortunately we are unable to find a way to capture these Survey Variables in flow.

     

     

  • v-bacao-msft Profile Picture
    v-bacao-msft on at
    Re: Microsoft Forms Variables into Flow

     

    Hi @coderv9 ,

     

    Thank you for your reply!

    The Get response details action will get the answers to all the questions submitted by the user, and it can be directly referenced using Dynamic content.

    The output you provided does not seem to include the property values in the parameters you mentioned.

     

    Am I missing something? It seems that I do not fully understand your intentions.

    Are you currently creating a normal form? What are the characteristics?

    Besides, could you tell us how to list Personalized data?

    58.PNG

     

    Best Regards,

  • coderv9 Profile Picture
    coderv9 6 on at
    Re: Microsoft Forms Variables into Flow

    Hi @v-bacao-msft ,

    Below is the response from the flow.

    I could see the variable Ticket in the flow. But its captured in the Form Responses.

    Is there any other way to capture the data rather than calling Get Response Details ?

     

    Input
    Get Response Details

    {
    "host": {
    "apiId": "subscriptions/subklsdklfklsdf/providers/Microsoft.Web/locations/westeurope/runtimes/europe-001/apis/microsoftforms",
    "connectionReferenceName": "shared_microsoftforms",
    "operationId": "GetFormResponseById"
    },
    "parameters": {
    "form_id": "form_id",
    "response_id": 51
    }
    }

    Outputs

    {
    "statusCode": 200,
    "headers": {
    "Pragma": "no-cache",
    "Transfer-Encoding": "chunked",
    "Vary": "Accept-Encoding",
    "X-RoutingOfficeCluster": "neu-000.forms.office.com",
    "X-RoutingOfficeFE": "FormsSingleBox_IN_4",
    "X-RoutingOfficeVersion": "16.0.12326.36679",
    "X-RoutingSessionId": "bfa95",
    "X-RoutingCorrelationId": "f197f80",
    "X-CorrelationId": "f17f80",
    "X-UserSessionId": "bf933aa95",
    "X-OfficeFE": "Formox_IN_1",
    "X-OfficeVersion": "16.0.12326.36679",
    "X-OfficeCluster": "neu-000.forms.office.com",
    "X-Content-Type-Options": "nosniff",
    "Strict-Transport-Security": "max-age=500; includeSubDomains",
    "Timing-Allow-Origin": "*",
    "x-ms-apihub-cached-response": "true",
    "Cache-Control": "no-cache",
    "Date": "Thu, 28 Nov 2019 08:16:40 GMT",
    "P3P": "CP=\"CR\"",
    "Content-Type": "application/json",
    "Expires": "-1",
    "Content-Length": "327"
    },
    "body": {
    "responder": "user@domain.com",
    "submitDate": "11/28/2019 8:16:38 AM",
    "r9a19190496c54ecfa44d0b2dd394bf92": "5",
    "r8f0a27f96d0545ebb56a57fae1acd02a": "5",
    "r95bded8d1b9a4abc9af7c429575fa849": "Test 2",
    "rcc8ec99a0b7e458b8b5cc3d9db545a39": "",
    "rb954e39c7a34446c80e5d973b53d6d67": ""
    }
    }

     

    03-12-2019 16-52-20.jpg

  • v-bacao-msft Profile Picture
    v-bacao-msft on at
    Re: Microsoft Forms Variables into Flow

     

    Hi @coderv9 ,

     

    Could you provide a sample of the data contained in the body of Get response details?

     

    Basically, the content contained in the Body is a JSON response. We can get the corresponding property value by the property name.

     

    Best Regards,

  • coderv9 Profile Picture
    coderv9 6 on at
    Re: Microsoft Forms Variables into Flow
    Hi CollabTechie,

    Thank you for the input.
    I had added an action for office 365 and was successful in getting user details.
    Unfortunately we are looking to retrieve the parmeter "Ticket" than the user details.
  • CollabTechie Profile Picture
    CollabTechie 442 on at
    Re: Microsoft Forms Variables into Flow

    Hi @coderv9 , try pass the 'Responders' e-mail' through the Office 365 users connector to get additional information about the user as seen below.

    app1.PNG

    ----------------------------------------------------------------------------------------------------------
    If my reply was helpful consider giving a THUMBS UP or if it solved your issue, please ACCEPT SOLUTION so others can find it.

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,422

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,711

Leaderboard

Featured topics