Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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?
Solved! Go to Solution.
Hi @samira,
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.
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
Hi @samira,
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.
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
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.
I will use Javascript after all, thanks for all!
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?
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
13 | |
2 | |
2 | |
1 | |
1 |