Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago

How to pass data from PowerBI to embeded window

We have some PowerBI reports embeded in an angular application. Whenever user clicks a record in PowerBI report, I need to pass the clicked record data from PowerBI to angular app.

 

Is it possible to pass data using window.postMessage? Please suggest if there are any other ways to pass data from powerBI iframe to parent window, so that the angular application listen for the message and trigger the callback.

2 Replies

  • Are you trying to use a basic iframe?  You can only interact with the Power BI content if you implement the complete Power BI Embedded (app owns data, I guess) experience.

  • Anonymous's avatar
    Anonymous
    Not applicable

    I am using the embed method of powerbi-client. I want to pass data from powerBI to the angular app. please find my embedding code below.

     

    let pbiSvc = new pbi.service.Service(pbi.factories.hpmFactory, pbi.factories.wpmpFactory, pbi.factories.routerFactory);
     let pbiEmbed = pbiSvc.embed(domElem, config);