cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
narendra
Level: Power Up

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
Community Support Team
Community Support Team

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
Community Support Team
Community Support Team

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

rmath
Level: Powered On

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

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!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (5,762)