Hi,
I've been using PowerBI Desktop to call on reports from Kronos Workforce Ready. They have a pretty straight-forward REST API (https://secure.workforceready.eu/ta/docs/rest/) and using the blank query I've been able to POST for a bearer token which is then used for GET-ing the reports.
So I can fetch the data that I need and reports to help our business and publish this to the service.
The issue I'm running into is when I want to refresh my dataset: the /login is entirely anonymous with credentials in the body of the POST and PBI Service refuses to connect to the endpoint (well, it connects but it uses GET instead of POST). I can refresh just fine in Desktop but Data Gateway keeps telling me:
Underlying error message: | Web.Contents failed to get contents from 'https://secure.workforceready.eu/ta/rest/v1/login' (405): Method Not Allowed |
I'm assuming this is because the Web doesn't allow for a body to do a POST? All the while permitting it in the blank query by using Content=Text.ToBinary() in the Web.Content().
Is there a way to automate this refresh of API data in any way other than scripting it outside of PBI?