Forum Discussion
Leecal123
7 years agoNew Member
On Premise Gateway invalid credentials
I'm currently connecting to a web data source using API Key passed as a header in my URL. Works fine in PowerBI desktop. I'm trying to create scheduled refresh using personal gateway however am g...
Leecal123
7 years agoNew Member
Hi Maggie,
Have tried achanging credentials back to Anonymous (as it is in PowerBI desktop) but still the same error when refreshing.
Have read the forum in the link you've provided but is throwing error with datasource in my inital query now. My Query looks like this:
Json.Document(Web.Contents("https://APIURL/440701" & "/event.json" & "?EventTypeCode=N102" & "&FromDate=2018-01-01" & "&take=1000", [Headers=[#"x-ApiKey"="APIKEY"]]))
v-juanli-msft
7 years agoCommunity Support
Hi Leecal123
Which error does it throw?
Is something wrong with your code?
Regarding how to Specifying JSON Query in Power Query, please refer to the link.
Please go to data source setting->edit permission to see the type of credential.
Best Regards
maggie