Michael Wolff on 03 Mar 2022 09:23:58
As Extension I suggest to add Visuals to the Power BI Rest Api.
In our special case we need to gather information about the usage count of standard and custom visuals in reports of our organisation. Use case here is the cost effectiveness of custom visuals you have to pay for and used in the organisation
Therefore I suggest the following additional Rest Api Endpoints:
Endpoints:
- Get Visuals
GET https://api.powerbi.com/v1.0/myorg/reports/{reportId}/pages/{pageName}/visuals
- Get Visuals in Group
GET https://api.powerbi.com/v1.0/myorg/groups/{groupId}/reports/{reportId}/pages/{pageName}/visuals
- Get Visuals as Admin
GET https://api.powerbi.com/v1.0/myorg/admin/reports/{reportId}/pages/{pageName}/visuals
- GET Visuals in Group as Admin
GET https://api.powerbi.com/v1.0/myorg/admin/groups/{groupId}/reports/{reportId}/pages/{pageName}/visuals
Response Type should be a new Visual Type:
Response Type:
- visualId (Guid of the visual instance in the report)
- visualName (as shown in the Selection View)
- visualTypeName (Barchart, etc.)
- custom (true if the visual is a custom visual)
- publisher (the publisher of the visual)
- currentVersion (the current version of the visual published in AppSource or the Organisation)
- usedVersion (the version ot the visual instance used in the report)
- space for further suggestions
Please vote for it. Thanks!