microsoft / powerbi-client-react

Power BI for React which provides components and services to enabling developers to easily embed Power BI reports into their applications.
MIT License
310 stars 98 forks source link

How to keep embedded dashboard up-to-date? #106

Closed aron51 closed 1 month ago

aron51 commented 9 months ago

I have an application that allows users to embed a Power BI dashboard. I've noticed that some changes, such as moving tiles, are automatically reflected in the embedded dashboard, but others, like removing a tile, are not. Is there a method to ensure the embedded dashboard stays in sync with the Power BI version, including all changes?

Thank you!

KotanaSai21 commented 9 months ago

Use reload() API and it reloads the embed using the existing configuration.

Refer to powerbi-client-dashboard-reload.

aron51 commented 9 months ago

Thanks. Is there any documentation somewhere about what is synced automatically, without calling reload? Like the thing I mentioned, moving around tiles are reflected without a reload

v-MadhavC commented 1 month ago

Changes like moving tiles usually synced automatically in the embedded dashboard without needing to call reload(). However, more significant updates, such as adding or removing tiles, usually require calling the reload() API to reflect those updates in the embedded dashboard. As for the specific details—there's no documentation that lists which changes sync automatically and which require a reload.