Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

183
Visualizações
Display public PowerBI report with powerbi.js (without credentials / token)

I'm trying to embed a PowerBI report in my webpage

This code works well WHEN the report has been published on Azure. So, providing the good credentials, everything is OK

var config = {
            type: 'report',
            tokenType: models.TokenType.Embed,
            accessToken: accessToken,
            embedUrl: embedUrl,
            id: embedReportId,
            permissions: models.Permissions.All,
            settings: {
                filterPaneEnabled: true,
                navContentPaneEnabled: true
            }
        };

        // Get a reference to the embedded report HTML element
        var reportContainer = $('#embedContainer')[0];
        // Embed the report and display it within the div container.
        window.powerbi.embed(reportContainer, config);

However, I have some PUBLIC reports.
Absolutely anyone can access them with the url and I'd like to display them the same way I did for "private" reports.

I know I could just do something like :

<iframe src="https://my-public-url" scrolling="no" allowfullscreen="true" style="width: 100%; height: 100%;"></iframe>

But I'd like to know if (and how ?) I could use the window.powerbi.embed method, providing it an object saying : "here is the my-custom-url for the report, but there's no need for token or id, just get it and display it". Obviously, if accessToken or id is null, then nothing is shown...

I've found the very same question here, but non-answered

Can anyone help me ? Thanks a lot

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda