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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Anonymous
Not applicable

C# code to get pages from each report

Hello all!!

I am playing with the powerBI API and I need help with.

I want to get the meta data from pages of a specific report . My goal is to make API calls to 

ApiUrl/reports/{report-id}/{pagename}, and get meta data from it. Just like we do for reports and dashboards. I have tried the same function without success , got a 404 error. 

Is  it possible?

If not, what other options do I have?

 

1 ACCEPTED SOLUTION
v-ljerr-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous,

I want to get the meta data from pages of a specific report . My goal is to make API calls to 

ApiUrl/reports/{report-id}/{pagename}, and get meta data from it. 



If I understand you correctly, you should be able to use the report.getPages function(PowerBI-JavaScript) to get the list of pages within the report, and then use page functions to get the Filters or Visuals or other meta data of each page. Smiley Happy

 

The sample code below is for your reference.

    var report = powerbi.embed(reportContainer, config);

    report.on('loaded', function () {
        report.getPages().then(function (pages) {
            //pages[1].setActive();
page.getFilters().then(filters => { ... }); }); });

 

Regards

View solution in original post

4 REPLIES 4
v-ljerr-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous,

I want to get the meta data from pages of a specific report . My goal is to make API calls to 

ApiUrl/reports/{report-id}/{pagename}, and get meta data from it. 



If I understand you correctly, you should be able to use the report.getPages function(PowerBI-JavaScript) to get the list of pages within the report, and then use page functions to get the Filters or Visuals or other meta data of each page. Smiley Happy

 

The sample code below is for your reference.

    var report = powerbi.embed(reportContainer, config);

    report.on('loaded', function () {
        report.getPages().then(function (pages) {
            //pages[1].setActive();
page.getFilters().then(filters => { ... }); }); });

 

Regards

Anonymous
Not applicable

Thank you for the reply!!

 

Are there such functions in c#? 

My app is written in C# and the goal is to get the meta data and add them to a database. 

Anonymous
Not applicable

I will use Javascript after all, thanks for all!

Anonymous
Not applicable

Hello all!!

I am playing with the powerBI API and I need help with.

I want to get the meta data from pages of a specific report . My goal is to make API calls to 

ApiUrl/reports/{report-id}/{pagename}, and get meta data from it. Just like we do for reports and dashboards. I have tried the same function without success , got a 404 error. 

Is  it possible?

If not, what other options do I have?

Helpful resources

Announcements
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 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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