Forum Discussion

fgroenev's avatar
fgroenev
Regular Visitor
8 years ago
Solved

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...
  • fgroenev's avatar
    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