cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
narendra
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
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
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

rmath
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
MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Automate Community!

firstImage

Now Live: 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!

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Users online (4,054)