Forum Discussion
fgroenev
8 years agoRegular Visitor
Uploading a PBIX file using the import API
Hello, I am stuck trying to programmatically upload a .pbix file using the import API, making use of the request-promise library which is imported as "rp" here. I am currently trying the foll...
- 8 years ago
I figured out what I did wrong. Apparently you need a datasetDisplayName which is part of the url.
Therefore this problem can be solved by appending the datasetDisplayName field to the url like this:
url: 'https://api.powerbi.com/v1.0/myorg/groups/' + groupId + '/imports?datasetDisplayName=' + reportName
fgroenev
8 years agoRegular Visitor
I figured out what I did wrong. Apparently you need a datasetDisplayName which is part of the url.
Therefore this problem can be solved by appending the datasetDisplayName field to the url like this:
url: 'https://api.powerbi.com/v1.0/myorg/groups/' + groupId + '/imports?datasetDisplayName=' + reportName