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

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.

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
Employee
Employee

@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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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