Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
ssathasivam1
Frequent Visitor

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 2
ssathasivam1
Frequent Visitor

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);
lbendlin
Super User
Super User

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.

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors