<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Can I Create or Modify Power BI Report Visuals from React? in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Can-I-Create-or-Modify-Power-BI-Report-Visuals-from-React/m-p/5340594#M65445</link>
    <description>&lt;P class=""&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thank you for your response.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I tested the sample in my React application.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Environment:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;powerbi-client: &lt;STRONG&gt;2.24.1&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;powerbi-client-react:&lt;STRONG&gt; 2.0.2&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The report loads successfully in Edit Mode, and &lt;STRONG&gt;report.getActivePage()&lt;/STRONG&gt; works correctly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, page.createVisual is &lt;STRONG&gt;undefined&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Available page methods are:&lt;/P&gt;&lt;P&gt;getVisuals&lt;/P&gt;&lt;P&gt;getVisualByName&lt;/P&gt;&lt;P&gt;moveVisual&lt;/P&gt;&lt;P&gt;resizeVisual&lt;BR /&gt;setVisualDisplayState&lt;/P&gt;&lt;P&gt;getFilters&lt;BR /&gt;updateFilters&lt;BR /&gt;...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is no &lt;STRONG&gt;createVisual()&lt;/STRONG&gt; method in the Page object, so calling it results in:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TypeError: page.createVisual is not a function&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;Could you please clarify:&lt;/P&gt;&lt;P class=""&gt;1. Is createVisual() available only in a newer SDK version?&lt;/P&gt;&lt;P class=""&gt;2. Does it require a different embedding configuration or licensing?&lt;/P&gt;&lt;P class=""&gt;3. Could you share a working sample using the current Power BI JavaScript SDK?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P class=""&gt;Thankyou.&lt;/P&gt;</description>
    <pubDate>Tue, 04 Aug 2026 12:30:44 GMT</pubDate>
    <dc:creator>S_Meghana</dc:creator>
    <dc:date>2026-08-04T12:30:44Z</dc:date>
    <item>
      <title>Can I Create or Modify Power BI Report Visuals from React?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Can-I-Create-or-Modify-Power-BI-Report-Visuals-from-React/m-p/5337423#M65438</link>
      <description>&lt;P&gt;Hello Microsoft Team,&lt;BR /&gt;&lt;BR /&gt;I have integrated a Power BI Embeded report into my React application using the Powerbi-client-react package.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currently, if I need to:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Add a new visual&lt;/LI&gt;&lt;LI&gt;Delete a visual&lt;/LI&gt;&lt;LI&gt;Change chart type&lt;/LI&gt;&lt;LI&gt;Change visual properties (colors, titles, formatting)&lt;/LI&gt;&lt;LI&gt;Modify the report layout&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I must open Power BI Desktop or Power BI Service, make the changes, publish the report, and then embeded the report in React reflects those changes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;My requirement is different.&lt;/P&gt;&lt;P&gt;I want users (or developers) to make these report UI changes &lt;STRONG&gt;directly from the React application&lt;/STRONG&gt;, without opening Power BI Desktop or Power BI Service.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My questions are:&lt;/P&gt;&lt;P&gt;1. Is it possible to create new Power BI visuals directly from a React application using &lt;STRONG&gt;powerbi-client-react&lt;/STRONG&gt; or any other Microsoft-supported SDK/API?&lt;/P&gt;&lt;P&gt;2. Is there any Microsoft API or SDK that allows modifying report layouts, visual formatting, or adding/removing visuals from React and saving those changes back to the Power BI report?&lt;/P&gt;&lt;P&gt;3. If this is not supported, what is the recommended Microsoft approach for implementing this requirement?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thankyou.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Aug 2026 11:48:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Can-I-Create-or-Modify-Power-BI-Report-Visuals-from-React/m-p/5337423#M65438</guid>
      <dc:creator>S_Meghana</dc:creator>
      <dc:date>2026-08-03T11:48:22Z</dc:date>
    </item>
    <item>
      <title>Re: Can I Create or Modify Power BI Report Visuals from React?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Can-I-Create-or-Modify-Power-BI-Report-Visuals-from-React/m-p/5340175#M65443</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1746860"&gt;@S_Meghana&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;
&lt;P&gt;Thanks for the detailed question. please check the answers below.&lt;/P&gt;
&lt;P&gt;1. Can you create or modify visuals from React using powerbi-client-react?&lt;/P&gt;
&lt;P&gt;Yes, when the report is embedded in Edit mode, the Power BI JavaScript Authoring APIs support:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Creating and deleting visuals&lt;/LI&gt;
&lt;LI&gt;Moving and resizing visuals&lt;/LI&gt;
&lt;LI&gt;Changing supported visual types&lt;/LI&gt;
&lt;LI&gt;Updating the data fields used by a visual&lt;/LI&gt;
&lt;LI&gt;Applying filters&lt;/LI&gt;
&lt;LI&gt;Saving report changes via report.save()&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;2. Is there a Microsoft API/SDK to save changes back?&lt;/P&gt;
&lt;P&gt;Yes, the same Power BI JavaScript SDK Authoring APIs. After making supported changes, call await report.save().&lt;/P&gt;
&lt;P&gt;3. Recommended approach&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Visual authoring (create, delete, move, resize, change type, update fields, filters, save)&amp;nbsp;-&amp;gt; JS Authoring APIs in Edit mode.&lt;/LI&gt;
&lt;LI&gt;Report appearance&amp;nbsp;-&amp;gt;report themes, where applicable.&lt;/LI&gt;
&lt;LI&gt;Semantic model changes (measures, tables, relationships) -&amp;gt; not supported through the Authoring APIs; use the appropriate Power BI development tools.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Please note the Authoring APIs provide a supported subset of report editing and are not intended to replicate the full Power BI Desktop authoring experience.&lt;/P&gt;
&lt;P&gt;Minimum setup:&lt;/P&gt;
&lt;PRE&gt;import { useRef } from "react";
import { PowerBIEmbed } from "powerbi-client-react";
import { models } from "powerbi-client";

const embeddedReportRef = useRef();

&amp;lt;PowerBIEmbed
  embedConfig={{
    type: "report",
    id: reportId,
    embedUrl: embedUrl,
    accessToken: accessToken,
    tokenType: models.TokenType.Embed,
    viewMode: models.ViewMode.Edit,
    permissions: models.Permissions.All
  }}
  getEmbeddedComponent={(report) =&amp;gt; { embeddedReportRef.current = report; }}
/&amp;gt;
&lt;/PRE&gt;
&lt;P&gt;Example: add a visual and save:&lt;/P&gt;
&lt;PRE&gt;const report = embeddedReportRef.current;
const page = await report.getActivePage();

await page.createVisual(
  "columnChart",
  { x: 0, y: 0, width: 400, height: 300 },
  true // autoFocus
);

await report.save();
&lt;/PRE&gt;
&lt;P&gt;Please ensure the embedding scenario, user permissions, and licensing meet the requirements for editing and saving embedded reports as described in the Microsoft documentation.&lt;/P&gt;
&lt;P&gt;References:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="https://learn.microsoft.com/power-bi/developer/embedded/report-authoring" target="_blank"&gt;Report authoring in Power BI Embedded&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://learn.microsoft.com/javascript/api/overview/powerbi/" target="_blank"&gt;Power BI JavaScript SDK&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://microsoft.github.io/PowerBI-JavaScript/demo/" target="_blank"&gt;Power BI JavaScript Playground&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://github.com/microsoft/PowerBI-client-react" target="_blank"&gt;powerbi-client-react on GitHub&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Thanks,&lt;BR /&gt;C Srikanth&lt;BR /&gt;Community Support Team&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 04 Aug 2026 10:23:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Can-I-Create-or-Modify-Power-BI-Report-Visuals-from-React/m-p/5340175#M65443</guid>
      <dc:creator>v-csrikanth</dc:creator>
      <dc:date>2026-08-04T10:23:09Z</dc:date>
    </item>
    <item>
      <title>Re: Can I Create or Modify Power BI Report Visuals from React?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Can-I-Create-or-Modify-Power-BI-Report-Visuals-from-React/m-p/5340594#M65445</link>
      <description>&lt;P class=""&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thank you for your response.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I tested the sample in my React application.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Environment:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;powerbi-client: &lt;STRONG&gt;2.24.1&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;powerbi-client-react:&lt;STRONG&gt; 2.0.2&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The report loads successfully in Edit Mode, and &lt;STRONG&gt;report.getActivePage()&lt;/STRONG&gt; works correctly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, page.createVisual is &lt;STRONG&gt;undefined&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Available page methods are:&lt;/P&gt;&lt;P&gt;getVisuals&lt;/P&gt;&lt;P&gt;getVisualByName&lt;/P&gt;&lt;P&gt;moveVisual&lt;/P&gt;&lt;P&gt;resizeVisual&lt;BR /&gt;setVisualDisplayState&lt;/P&gt;&lt;P&gt;getFilters&lt;BR /&gt;updateFilters&lt;BR /&gt;...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is no &lt;STRONG&gt;createVisual()&lt;/STRONG&gt; method in the Page object, so calling it results in:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TypeError: page.createVisual is not a function&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;Could you please clarify:&lt;/P&gt;&lt;P class=""&gt;1. Is createVisual() available only in a newer SDK version?&lt;/P&gt;&lt;P class=""&gt;2. Does it require a different embedding configuration or licensing?&lt;/P&gt;&lt;P class=""&gt;3. Could you share a working sample using the current Power BI JavaScript SDK?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P class=""&gt;Thankyou.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Aug 2026 12:30:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Can-I-Create-or-Modify-Power-BI-Report-Visuals-from-React/m-p/5340594#M65445</guid>
      <dc:creator>S_Meghana</dc:creator>
      <dc:date>2026-08-04T12:30:44Z</dc:date>
    </item>
    <item>
      <title>Re: Can I Create or Modify Power BI Report Visuals from React?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Can-I-Create-or-Modify-Power-BI-Report-Visuals-from-React/m-p/5340693#M65447</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1746860"&gt;@S_Meghana&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;
&lt;P&gt;Thank you for testing the sample and for sharing the SDK versions along with the available methods from the Page object.&lt;/P&gt;
&lt;P&gt;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.&amp;nbsp;&lt;SPAN&gt;I apologize for the confusion in my earlier reply.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;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.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;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.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;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.&lt;/P&gt;
&lt;P&gt;For the latest supported authoring capabilities, please refer to the official documentation:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;
&lt;P&gt;Report authoring for Power BI Embedded: &lt;A href="https://learn.microsoft.com/power-bi/developer/embedded/report-authoring" target="_blank"&gt;https://learn.microsoft.com/power-bi/developer/embedded/report-authoring&lt;/A&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;Power BI JavaScript SDK: &lt;A href="https://learn.microsoft.com/javascript/api/overview/powerbi/" target="_blank"&gt;https://learn.microsoft.com/javascript/api/overview/powerbi/&lt;/A&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;powerbi-client-react GitHub repository: &lt;A href="https://github.com/microsoft/powerbi-client-react" target="_blank"&gt;https://github.com/microsoft/powerbi-client-react&lt;/A&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Thank you again for pointing this out. Your findings help clarify the current capabilities of the SDK for other community members as well.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Thanks.&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 04 Aug 2026 12:55:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Can-I-Create-or-Modify-Power-BI-Report-Visuals-from-React/m-p/5340693#M65447</guid>
      <dc:creator>v-csrikanth</dc:creator>
      <dc:date>2026-08-04T12:55:21Z</dc:date>
    </item>
    <item>
      <title>Re: Can I Create or Modify Power BI Report Visuals from React?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Can-I-Create-or-Modify-Power-BI-Report-Visuals-from-React/m-p/5350321#M65458</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1746860"&gt;@S_Meghana&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;SPAN&gt;We would like to inquire whether have you got the chance to check the solutions provided above&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;in community to resolve the issue. We hope the information provided helps to clear the query. Should you have any further queries, kindly feel free to contact the Microsoft Fabric community.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Aug 2026 13:50:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Can-I-Create-or-Modify-Power-BI-Report-Visuals-from-React/m-p/5350321#M65458</guid>
      <dc:creator>v-csrikanth</dc:creator>
      <dc:date>2026-08-07T13:50:59Z</dc:date>
    </item>
  </channel>
</rss>

