cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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
v-micsh-msft
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
v-micsh-msft
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
MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MSFTBizAppsLaunchEvent

Experience what’s next for Power Virtual Agents

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Users online (32,882)