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 September 15. Request your voucher.

Reply
pietrodig
Regular Visitor

LocalStorage v2 and embedded reports

Hi everyone,

I am experiencing an issue with the new LocalStorage v2 while developing my custom visual. Specifically, following the main example I can make it work on the desktop and web versions of Power BI, however when I embed the report using the URL (no publish to web, just copy the embed link and open it in the browser) the API is never allowed. I see from the documentation that the API is also available for SaaS embed, which should align with my use case

Can anyone help me figure out why this is happening and how to resolve it?

Thanks in advance!

4 REPLIES 4
pietrodig
Regular Visitor

Any updates on this?

Anonymous
Not applicable

@pietrodig,

In fact, the document already mentions the SAAS embed is support. But this does not mean the LocalStorage v2 works for each embed scenario, they will also be effected by environment, web browser or other settings.

You can refer to the document's suggestion to add set/get/remove methods to check the API status to confirm it availed on your environment.

Regards,

Xiaoxin Sheng

Anonymous
Not applicable

HI @pietrodig,

I'd like to suggest you take a look the limitation list if it suitable for your scenario:

Local Storage API in Power BI Visuals - Power BI | Microsoft Learn

Data can be shared between visuals with the same GUID, same environment, and for the same user only.

If the browser is in kiosk mode, local storage availability might differ between browsers, and by the kiosk owner's settings.

There are many reasons this API might not be supported. For example, the environment might not be supported or the browser’s local storage isn't available. We recommend checking the status of the API before using the set/get/remove methods. Error handling is important since even if the API is supported, it might fail.

Regards,

Xiaoxin Sheng

Dear @Anonymous,

Thank you for your reply. Unfortunately, it does not address my question. According to the documentation, the API is supported in several environments, including SaaS Embed.

Could you please clarify if the SaaS Embed use case covers both the web URL embed and the publish to web embed, or only one of these? If it is only one, which one is it? If it does not cover these, what are the specific use cases covered by SaaS Embed?

Please let me know if my questions are too technical for this forum and if I should post them elsewhere.

Many thanks in advance!

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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