Forum Discussion
Bessonnizza
6 years agoHelper II
Json.FromValue
Hello there, I want to write POST request with data for WEB service. I try to use Json.FromValue function to convert to JSON, but it isn't working. JSON data schema: My POST request...
lbendlin
6 years agoSuper User
ImkeF No particular reason. I haven't worked with HTTP POST much yet in the web.contents connector. It's on my list of things to learn.
lbendlin
6 years agoSuper User
ImkeF yes, Json.FromValue works.
data = Json.FromValue([ Period = [ Begin = paramBegin , End = paramEnd ],TargetObject = [ ObjectId = paramObjectId ,ObjectTypeId = paramObjectTypeId ]])
- ImkeF6 years agoCommunity Champion
Hi lbendlin ,
you might bi interested in this little article that I wrote some time ago: https://www.thebiccountant.com/2018/06/05/easy-post-requests-with-power-bi-and-power-query-using-json-fromvalue/