Forum Discussion

khshakur's avatar
khshakur
Regular Visitor
8 years ago
Solved

Get List Of Report Pages via C# Rest API

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.

  • khshakur's avatar
    khshakur
    8 years ago

    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.

5 Replies

  • v-micsh-msft's avatar
    v-micsh-msft
    Microsoft Employee

    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:

    Get Pages 

     

    Regards,

    Michael

    • khshakur's avatar
      khshakur
      Regular Visitor

      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.