Forum Discussion
KieranNZ
4 years agoFrequent Visitor
PBIE Report Visuals API Endpoint
I understand that we can embed individual visualizations, however getting a list of visuals on a report or report page is not straight-forward. This is the current workaround as I understand it: How ...
Anonymous
4 years agoNot applicable
Hi KieranNZ ,
Please review the following links and check whether they are what you want. Hope they can help you resolve the problem...
| let pages = await page.getVisuals(); |
Get visuals from Power BI report through API Call
You cannot get them with the REST API but you can with the Javascript API
If you did the following to embed your report
var report = powerbi.embed(reportContainer, config);You could then do the following PowerBI Javascript API call to get all of the visuals on the first page of the embedded report and store them in a MyReportVisuals variable to do whatever you want with.
report.getPages().then(pages => { pages[0].getVisuals().then(visuals => MyReportVisuals = visuals) });
Best Regards