Forum Discussion

aTChris's avatar
aTChris
Icon for Resolver I rankResolver I
7 years ago
Solved

Dynamic Web.Contents Power BI Refresh Error

Im having issues refreshing my data with Web.Contents

 

I need to pull data from an API which limits the results to 1000. I found the amazing function to invoke a custom function to construct the URI with the correct page parameters.

 

(page as text) =>
let

Source = Json.Document(Web.Contents("https://xx.xxx.com/xx/xx/xx?size=1000&page=" & page)),

 

I then found the schedule refresh fails due to the URI check. It appears the skip check is not supported in the cloud yet. Im having trouble with the syntax of a workaround.

 

(page as text) =>
let

Source = Json.Document(Web.Contents(
"https://xx.xxx.com/xx/xx/xx?size=1000&page=1",
[Query=[page= & page]])),

 

Im getting the error token literal expected.

Its 10pm my brain isnt working. What am I missing.

 

Thanks

 

 

4 Replies