Forum Discussion
Can I Create or Modify Power BI Report Visuals from React?
Hi S_Meghana
Thank you for testing the sample and for sharing the SDK versions along with the available methods from the Page object.
You're correct based on your testing with powerbi-client 2.24.1 and powerbi-client-react 2.0.2, page.createVisual() is not available. I apologize for the confusion in my earlier reply.
Based on the current Microsoft documentation, there is no documented public API that supports creating new report visuals programmatically from an embedded React application using the Power BI JavaScript SDK.
The Power BI JavaScript SDK provides a supported subset of report authoring capabilities for embedded reports, but it does not provide the same authoring capabilities as Power BI Desktop or the Power BI Service.
If your requirement is to allow users to create entirely new visuals and save them back to the report from a React application, this capability is not currently supported through the public JavaScript SDK.
For the latest supported authoring capabilities, please refer to the official documentation:
-
Report authoring for Power BI Embedded: https://learn.microsoft.com/power-bi/developer/embedded/report-authoring
-
Power BI JavaScript SDK: https://learn.microsoft.com/javascript/api/overview/powerbi/
-
powerbi-client-react GitHub repository: https://github.com/microsoft/powerbi-client-react
Thank you again for pointing this out. Your findings help clarify the current capabilities of the SDK for other community members as well.
Thanks.