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

get form response details as json

hi,

Is possible to retrieve Forms "get response details" in Json format?

or an object that can be converted  using json function like json(object)

 

 

Best regards,

Narendra

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: get form response details as json

Hi @narendra,

 

Please take a try with the following expression:

body('Get_response_details')

For example:

6.PNG

 

Using the Body() would have the response Action Outputs returned in JSON format.

Results as below:

7.PNG

Things to note is:

Using hte Whole body instead of each seperated dynamic content would have the Question shown in GUID (not the corresponding question name).

To workaround this, you could add a Select Action, with the from input, enter the following expression:

createArray(body('Get_response_details'))

Then, map the value from the dynamic content:

8.PNG

 

See the results:

9.PNG

And if you would like to take use of the Select outputs, try the following expression:

first(body('Select'))

See reference:

10.PNG

Regards,

Michael

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

View solution in original post

2 REPLIES 2
Highlighted
Community Support
Community Support

Re: get form response details as json

Hi @narendra,

 

Please take a try with the following expression:

body('Get_response_details')

For example:

6.PNG

 

Using the Body() would have the response Action Outputs returned in JSON format.

Results as below:

7.PNG

Things to note is:

Using hte Whole body instead of each seperated dynamic content would have the Question shown in GUID (not the corresponding question name).

To workaround this, you could add a Select Action, with the from input, enter the following expression:

createArray(body('Get_response_details'))

Then, map the value from the dynamic content:

8.PNG

 

See the results:

9.PNG

And if you would like to take use of the Select outputs, try the following expression:

first(body('Select'))

See reference:

10.PNG

Regards,

Michael

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

View solution in original post

Highlighted
Regular Visitor

Re: get form response details as json

Im trying to use this same exact flow without the date requirement but keep getting errors. Any suggestions? Here are the settings that i use and the error i get. 

Capture.PNGCapture2.PNG

Helpful resources

Announcements
firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

firstImage

Join the new Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

Top Solution Authors
Top Kudoed Authors
Users online (8,573)