Forum Discussion
Dynamic Web.Contents Power BI Refresh Error
- 7 years ago
Hi aTChris
there are several blog posts on how to work around this problem.
Web.Contents(), M Functions And Dataset Refresh Errors In Power BI
Dynamic Web.Contents() and Power BI Refresh Errors
As for the syntax of the workaround,
you could check this blog to learn more.
Revisiting Dynamic Web.Contents()
Based on my understanding, your code can be modified as below
(pagenumber as text) => let Source = Json.Document(Web.Contents( "https://xx.xxx.com/xx/xx/xx?size=1000&page=1", [Query=[page=pagenumber]])),
You can create a query parameter called "pagenumber",
Power BI Desktop Query Parameters, Part 1
Best Regards
MaggieCommunity Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hello, thank you so much for raising this question, the solution to this question is a great help.
I have found another problem on Sharepoint credential when using relative path in Web.Contents. Following link is my thread.
https://community.powerbi.com/t5/Service/Web-Contents-with-dynamic-file-URL/td-p/928233
Could anyone please give me a hand on this? Thank you so much!