Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
brunozanoelo
Post Patron
Post Patron

Power BI API for IMPORT pbix files

Hello guys, all right?

I'm working on an application so that you can send multiple files to pbix different organizations of power bi.
My goal is to make this application in Delphi (for various reasons), with that, I have a few questions, and would be grateful if you guys could help me.

1) In these organizations, only the Power BI service is purchased, they will not have the azurre and not the 365.
It would not have problem?

2) To get the token, you do not need to install any security software?
https://powerbi.microsoft.com/en-us/documentation/powerbi-developer-authenticate-to-power-bi-service...


3) To make the import pbix file is only necessary to get the token?

Thanks guys!!! 😄 

3 REPLIES 3
Eric_Zhang
Microsoft Employee
Microsoft Employee


I'm working on an application so that you can send multiple files to pbix different organizations of power bi.
My goal is to make this application in Delphi (for various reasons), with that, I have a few questions, and would be grateful if you guys could help me.

1) In these organizations, only the Power BI service is purchased, they will not have the azurre and not the 365.
It would not have problem?

2) To get the token, you do not need to install any security software?
https://powerbi.microsoft.com/en-us/documentation/powerbi-developer-authenticate-to-power-bi-service...


3) To make the import pbix file is only necessary to get the token?


  1. There would not have any probelm.
  2. No need to install any software.
  3. I don't quite get this question, anyway check the AccessToken method in this sample.

The problem is that I am developing in Delphi, not C #, Delphi unfortunately does not contain an integration API as C #, which already has the GetToken function.

RequestAuthToken.Params.ParameterByName('grant_type').Value := 'password';
RequestAuthToken.Params.ParameterByName('scope').Value         := 'openid';
RequestAuthToken.Params.ParameterByName('resource').Value    := ResourceURI;
RequestAuthToken.Params.ParameterByName('client_id').Value     := ClientID;

My app is a native app, so i dont have a client_secret, what should i do? Need to pass this param?
RequestAuthToken.Params.ParameterByName('client_secret').Value := ?

RequestAuthToken.Params.ParameterByName('username').Value := ':MY_USR+NAME';
RequestAuthToken.Params.ParameterByName('password').Value  := ':PASSWORD_OF_USER';

What params should i use to get the token? In C# example, the program just call one function and nothing else.

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.