cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Regular Visitor

Exporting to PowerPoint using the PowerBI API

Hi, I am completly new to using the Power BI API.

I looked at the code examples on how to export to powerpoint but I am completly lost on how it works

Export Power BI reports API - Power BI | Microsoft Docs

 

Does anyone have a working sample I can look at? or can maybe guide me to a working sample?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Frequent Visitor

Re: ck Re: Exporting to PowerPoint using the PowerBI API

using Microsoft.PowerBI.Api;

var client = new PowerBIClient(new Uri("https://api.powerbi.com/"), tokenCredentials);

you will need to create the token Credentials by generating the token

View solution in original post

6 REPLIES 6
Highlighted
Super User V
Super User V

Re: Exporting to PowerPoint using the PowerBI API

There is a working example in the link you reference.

Highlighted
Regular Visitor

Re: Exporting to PowerPoint using the PowerBI API

Sorry let me rephrase that. I am looking for working source code?

Highlighted
Community Support
Community Support

Re: Exporting to PowerPoint using the PowerBI API

HI @Sil3ntGam3r,

As lbendlin said, it already shared the C# version sample code about the methods to invoke rest API. Are you mean the different programming/script language versions or the whole project source codes?

Bookmark:

Export Power BI report to file (preview)#code-examples 

In addition, you can also navigate to the rest API page and click on 'try it' button to use the online version(HTML script) :

Reports - Get Pages In Group#code-try-0 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
Highlighted
Regular Visitor

ck Re: Exporting to PowerPoint using the PowerBI API

Thanks for the reply. Ill check out the online version.

 

The problem I am having is with the example code.

 

I tried using it, but I get an error with the Client object. It says in the comments that 'Client' is an instance of the Power BI .NET SDK.

But what does that mean to me? How do I declare the Client object in my C# application?

Highlighted
Frequent Visitor

Re: ck Re: Exporting to PowerPoint using the PowerBI API

using Microsoft.PowerBI.Api;

var client = new PowerBIClient(new Uri("https://api.powerbi.com/"), tokenCredentials);

you will need to create the token Credentials by generating the token

View solution in original post

Highlighted
Frequent Visitor

Re: Exporting to PowerPoint using the PowerBI API

Helpful resources

Announcements
Ignite

Microsoft Ignite

This will be a conference that you do not want to miss!

Get Ready for Power BI Dev Camp

Get Ready for Power BI Dev Camp

Don't miss the Power BI Dev Camp this week!

August Community Highlights

Check out a full recap of the month!

August 2020 CYST Challenge

Check out the winners of the recent 'Can You Solve These?' community challenge!

Experience what’s next for Power BI

Join us for an in-depth look at the new Power BI features and capabilities at the free Microsoft Business Applications Launch Event.