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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric 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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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

Top Solution Authors