web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Automate
Suggested Answer

Json not working

(0) ShareShare
ReportReport
Posted on by 23
I have had a flow which was working as should be, but after a while I am now having problems, I have a flow in which it takes responses from forms and adds them into the sharepoint list but.. there is also a add for each with the json code which I dont remember how to fix and now I get errors.
I have tried to fiddle with the code but now I dont know how to bring it back to what it was.. this is the state of it now

And this is the state that it was in two days ago, taken from a working submition of the flow:
Im sure its something small and I just cant find it 
Categories:
  • Suggested answer
    Daniel Bocklandt Profile Picture
    5,151 Super User 2026 Season 1 on at
    Hey MrKevin,
     
    Seems like in the old version you where taking the body of the response output in the version you worked with you're taking the whole thing with headers and everything. 
     
    Try to go back to using the body 
    json(outputs('Get_response_details')?['body'])
    It should be somthing like this or close to it. Since in your code there is a guid behind the body (...?['body/{GuidNumber}']) So could be that it is body/Id or something like this. You can look it up in your Dynamic content bormaly. 
     
    If this solvede your porblem please accept it as solution so others can find it as well. 
    If it helped in any other way consider liking it so we can keep supporting eachother. 
  • MrKevin Profile Picture
    23 on at
    Hi DBO, 
    The template language function 'json' expects its parameter to be a string or an XML. The provided value is of type 'Object'.

    The above is the error that I get after the proposed solution.

    Here is my flow:


     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 423

#2
11manish Profile Picture

11manish 308 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 177

Last 30 days Overall leaderboard