Forum Discussion
Power BI - Need data from a POST Api
- 1 year ago
Please follow the documentation. Use a body payload. https://learn.microsoft.com/en-us/powerquery-m/web-contents#example-2
- 1 year ago
Yes. You should try running the following two examples (check the "json" fields in the result to see if your program is correct). I believe you will truly understand how to post data.
let resp = Web.Contents( "https://httpbin.org", [ RelativePath = "post", Content = Json.FromValue([A = 1, B = "2025/01/02"]) ] ), data = Json.Document(resp) in datalet resp = Web.Contents( "https://httpbin.org", [ RelativePath = "post", Content = Text.ToBinary("{""A"": 1, ""B"": ""2025/01/02""}", TextEncoding.Utf8) ] ), data = Json.Document(resp) in data
Hello gbros ,
I wanted to follow up on our previous suggestions regarding the issue. We would love to hear back from you to ensure we can assist you further.
If the response has addressed your query, please accept it as a solution and give a ‘Kudos’ so other members can easily find it. Please let us know if there’s anything else we can do to help.
Thank you.
Hi gbros ,
May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.
Thank you.