I'm not sure I understand how the RelativePath is supposed to be used to retrieve a Token from the OAuth2 service? From what I understand (which could be wrong), we have to request an Authentication Token from a URL and then the Power M Query has to use the token in order to complete the query.
The Power M Query I have below gets the token and then retrieves the data. However, this does not work using the On-Premise Gateway. Can you provide any insight on how to get this to work?
Power BI Desktop Query (works fine - uses authentication token)
actualUrl = "xxx/oauth/token",
record = [grant_type="password",username="xxx",password="xxx"],
body = Text.ToBinary(Uri.BuildQueryString(record)),