Forum Discussion
Anonymous
8 years agoNot applicable
Single visual embedding - getting names of pages and visuals?
As shown in: https://microsoft.github.io/PowerBI-JavaScript/demo/v2-demo/index.html# we have to provide pageName and visualName. These are strings that don't seem to be discoverable from the ...
Dan_Cundy
7 years agoFrequent Visitor
I'm guessing no-one has worked out an easy way yo do this yet?
- nfadili7 years agoFrequent Visitor
The fact that the powerbi-client library allows specifying a 'default page' implies that these names would be discoverable somehow. https://github.com/Microsoft/PowerBI-JavaScript/wiki/Embed-Configuration-Details#options
Has anybody figured this out yet? The only way I have found to get the page 'name' is by calling 'report.getPages()', at which point there's no point in being able to specify a default page when embedding.