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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
hari_seenivasan
Frequent Visitor

Once I have a report URL,  Can I display the report without iframe postMessage?

Once I get the report URL, to display the report can I use server side post request with "message" atribute to obtain the report?

3 REPLIES 3
Eric_Zhang
Microsoft Employee
Microsoft Employee

@hari_seenivasan

I'm guessing that you don't like to obtain the access token every time?

One way I know is in Power BI Embedded with a token never expires. Check this reply

No. I don't want access_token to be embedded into the dom or webpage.

It's a server variable, I don't want to use the postMessage as it cannot retrieve access_token from server.

If there is a way to use get/post request from server to load the reports?

 

@hari_seenivasan

 

I'm afraid the answer is No, there isn't.

Not quite an expert on javascript, however, per the documentation Window.postMessage(), the report page on server by design is listening to the message from postMessage and be ready to reponse. Though you could embedde an report with Javascript API (still need accesstoken) without explicitly calling the postMessage, I'm guessing the code underlying is still use postMessage.  

So based on my understanding, it is javascript behavior and communication mechanism between the clients' page and embedded iframe, it just has nothing to do with get/post request.
 
 

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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