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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.