Forum Discussion
vivinj
6 years agoFrequent Visitor
Error while executing Get dataset call "API is not accessible for application"
Hi, I am trying to execute the API calls for Power BI on Postman. I was able to successfully generate the token using the service principal method. Now when I try and execute a GetDataset call in...
- 6 years ago
I was able to find the reason why. This was because I was trying to work on the data form My Org and this is a limitation in the Service Principal method:
Considerations and limitations
- Service principal only works with new workspaces.
My Workspace isn't supported when using service principal.
I am sorted now thanks for teh help.
shubh43
4 years agoAdvocate I
The URL in the Microsoft API documentation is wrong for service principals.
You need to also include the workspace ID in the URL, see below
https://api.powerbi.com/v1.0/myorg/groups/{WorkspaceID}/reports/{reportId}/exports
- sdeymonnaz3 years agoRegular Visitor
This fixed the issue for me. Thanks a lot!
- PaginatedDino3 years agoHelper I
For me as well, thanks! But c'mon how is one supposed to find this...? Trial and error?
- leathard1 year agoAdvocate I
This should be the accepted solution