cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
coderv9
New Member

Microsoft Forms Variables into Flow

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

7 REPLIES 7
CollabTechie
Responsive Resident
Responsive Resident

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.

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.
v-bacao-msft
Community Support
Community Support

 

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,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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

 

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,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.

 

 

 

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,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

New Process Advisor Capabilities carousel.png

Read the blog for the latest news

Read the latest about new experiences and capabilities in the Power Automate product blog.

PA Survey Carousel Image.png

We want to hear from you!

If you are a small business ISV/Reseller, share your thoughts with our research team.

AI Builder AMA June 7th carousel (up on May 25th, take down June 8th) (1).png

'Ask Microsoft Anything' about AI Builder!

The AI Builder team invite you to ask questions and provide helpful answers at our next AMA.

Users online (1,493)