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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
brunozanoelo
Helper V
Helper V

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
Employee
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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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