cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
David_TS
Frequent Visitor

Power BI REST API - Get Pages

Hello,

 

When I use this API:

https://docs.microsoft.com/en-us/rest/api/power-bi/reports/get-pages

https://api.powerbi.com/v1.0/myorg/reports/{reportId}/pages

 

I get the pages of my report, but only the displayName and order fields. I don't get the "name" field, it's empty.

In my understanding, it's the field I need to build the complete URL to the page.

I get the url of my report with https://api.powerbi.com/v1.0/myorg/reports/{reportId} and the webUrl field, but i would like to build the direct url to my page.

Why I don't get the "name" field ? Any other way to build my url to my page ?

Thanks !

2 ACCEPTED SOLUTIONS

thank you ! your answer helped me detecting the problem : MS documentation indicates "name", but it's "Name".

View solution in original post

David_TS
Frequent Visitor

My report doesn't work anymore ...... they put it back to "name". Thanks MS...😡

View solution in original post

3 REPLIES 3
David_TS
Frequent Visitor

My report doesn't work anymore ...... they put it back to "name". Thanks MS...😡

AmosHersch
Microsoft
Microsoft

@David_TS which report type are you using? Is it a paginated report or a standard PBIX report?

 

I just called the API: https://api.powerbi.com/v1.0/myorg/groups/{groupId}/reports/{reportId}/pages

 

And got the following in the response body:

{
"@odata.context":"http://wabi-us-north-central-redirect.analysis.windows.net/v1.0/myorg/groups/41ac7a4a-fa22-40d3-bb16...","value":[
{
"Name":"ReportSection5","displayName":"Top 100 Contributors","order":0
},{
"Name":"ReportSectione980957bd37845a89202","displayName":"Traffic","order":1
},{
"Name":"ReportSection4","displayName":"Contributor Commits","order":2
},{
"Name":"ReportSection3","displayName":"Pull Requests","order":3
},{
"Name":"ReportSection1","displayName":"Punch Card","order":4
},{
"Name":"ReportSection6","displayName":"Issues","order":5
},{
"Name":"ReportSection","displayName":"Logos","order":6
}
]
}

 

thank you ! your answer helped me detecting the problem : MS documentation indicates "name", but it's "Name".

Helpful resources

Announcements
Carousel_PBI_Wave1

2023 Release Wave 1 Plans

Power BI release plans for 2023 release wave 1 describes all new features releasing from April 2023 through September 2023.

Power BI Summit Carousel 2

Global Power BI Training

Make sure you register today for the Power BI Summit 2023. Don't miss all of the great sessions and speakers!

BizApps LATAM 2023

Business Application LATAM Summit 2023

Join the biggest FREE Business Applications Event in LATAM this February.

Power Platform Bootcamp

Global Power Platform Bootcamp

In this bootcamp we will deep-dive into Microsoft’s Power Platform stack with hands-on sessions and labs, delivered to you by experts and community leaders.