I am trying to implement some custom page navigation per report in Power BI. I am trying to get a list of the pages for the report so I can loop through those pages in custom tabs of mine. report.getPages().then(pages => { console.log("in the getpages .then"); console.log(pages)return pages; });
This is my code and I'm not sure why, once the promise resolves, I'm not able to log the pages. Any help on this is appreciated. Thank you!
I just tested this functionality using the Power BI Embedded Playground -> Sample Report, which is a great way to test SDK functions.
The following snippet is functional and provided by the Power BI Embedded Playground.