Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin 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.
I see from documentation that it is possible to get some information about groups, reports and etc. via the C# Rest API. I am wondering if I am able to get all the pages within a report via the API.
Solved! Go to Solution.
Thanks for the reply. I should have clarified a bit. I am aware that you can use the JS API (currently I have a bit of a hack to get the information I need to my C# app). I was able to get in touch with someone on the PowerBi team and they informed me it is not possible at the moment via the C# REST API.
Yes, it is possible.
You could get all the pages within a Report through Power BI Javascript API:
Gets the list of pages within the report.
report.getPages()
.then(pages => {
...
});
More information, see:
Regards,
Michael
Thanks for the reply. I should have clarified a bit. I am aware that you can use the JS API (currently I have a bit of a hack to get the information I need to my C# app). I was able to get in touch with someone on the PowerBi team and they informed me it is not possible at the moment via the C# REST API.
@khshakur - Hi there! Even I am searching for this solution from quite a long time. Using PhantomJS hack for the time being to load the report behind the scene and calling getPages() js API method to get the list of sections. If you dont mind sharing, what hack you are using?
I am doing the same thing minus PhantomJS. I will actually look into using PhantomJS as seems like a cleaner solution.
This would be a handy API to have!
User | Count |
---|---|
8 | |
7 | |
2 | |
2 | |
2 |
User | Count |
---|---|
6 | |
5 | |
4 | |
4 | |
4 |