Forum Discussion
mad_penguin
5 years agoNew Member
PowerBI embedded dashboard with php & html faulty embed link
Hi, For a project we are doing we built a website using php, html, css, js. One of our partners asked if we could embed a powerBI dashboard into one of the pages. What I thought would be a half-...
mad_penguin
5 years agoNew Member
Yes, I believe that is why you specify report id in the powerBI.js config?
var models = window['powerbi-client'].models;
var embedConfiguration= {
type: 'report',
tokenType: models.TokenType.Aad,
id: '', // the report ID
embedUrl: '<?php echo $embedUrl ?>',
accessToken: '<?php echo $access_token; ?>'
};
var $reportContainer = $('#reportContainer');
var report = powerbi.embed($reportContainer.get(0), embedConfiguration);
I also tried with
https://embedded.powerbi.com/appTokenReportEmbed?reportId=xxxx
As embed url