Forum Discussion
johnwest
5 years agoRegular Visitor
Error creating refreshment schedule of web content data with post method
I have a PBI Report Server that gets data from an API by POST method, something like: let
URL = "http://xxx/tstat",
headers = [#"Content-Type"="application/json"],
data = "{""quer...
- 5 years ago
I don't have a post API where I can test this, but you may be running into a variation of this issue https://blog.crossjoin.co.uk/2016/08/23/web-contents-m-functions-and-dataset-refresh-errors-in-power-bi/ so maybe try putting the url directly into the call to web.contents rather than referencing the URL variable and see if that helps.
d_gosbell
Super User
5 years agoI don't have a post API where I can test this, but you may be running into a variation of this issue https://blog.crossjoin.co.uk/2016/08/23/web-contents-m-functions-and-dataset-refresh-errors-in-power-bi/ so maybe try putting the url directly into the call to web.contents rather than referencing the URL variable and see if that helps.