Forum Discussion
stribor45
2 years agoPost Prodigy
Power Query - Blank Query - API Call Service Refresh
I have this piece of code where I call external API to get some data but an issue I am having is that once I publish this to Power BI service if fails to refresh you to dynamic data source etc. Howev...
lbendlin
2 years agoSuper User
Remove the question mark from RelativePath
is the query parameter called start or offset?
stribor45
2 years agoPost Prodigy
is this something that cant be solved by power query? I have tried removing pieces of the URL and adding it to relative path in hope that it would work to no luck. anything else i can try?
- lbendlin2 years agoSuper User
Show what you have tried, and what error message you got.
- stribor452 years agoPost Prodigy
let headers = [#"Content-Type" = "application/json", #"Accept"="application/json"], getJson = (url) => let Source = Json.Document(Web.Contents(url, [RelativePath = "api/v2/pokemon", Query=[limit="100", offset="0"], Headers = headers])) in Source, data = getJson("https://pokeapi.co") in dataI dont have an error per say but what I do get is error in service that this cant be refreshed.
- lbendlin2 years agoSuper User
Is
https://pokeapi.coa valid URL that returns a http 200?