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

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

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

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
Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (50,053)