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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.