<?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: Custom Visual in PowerBi Javascript in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Custom-Visual-in-PowerBi-Javascript/m-p/1280748#M25129</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/251443"&gt;@jugurtha&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;It is a little bit frustrating, but you can get the Visual ID by opening up the pbix file.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Start by making a copy of your PBIX report file&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MattCalderwood_0-1596815133872.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/328650i189A5AB614E144AA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MattCalderwood_0-1596815133872.png" alt="MattCalderwood_0-1596815133872.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Then rename the pbix file extension to .zip (pbix files are simply zip archives)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MattCalderwood_1-1596815214094.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/328651i08528E2A2C9678C3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MattCalderwood_1-1596815214094.png" alt="MattCalderwood_1-1596815214094.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;You can then browse the contents - open up the '&lt;STRONG&gt;reports&lt;/STRONG&gt;' folder inside - and look for a file called '&lt;STRONG&gt;Layout&lt;/STRONG&gt;'&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MattCalderwood_2-1596815297093.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/328652iF8B73DF1B9430804/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MattCalderwood_2-1596815297093.png" alt="MattCalderwood_2-1596815297093.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can then open this file in notepad - or another text editor...&lt;/P&gt;&lt;P&gt;The file contains JSON data defining your report contents and layout.&lt;BR /&gt;&lt;BR /&gt;If we take the contents of the file and view it in a JSON viewer - we can see the structure.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MattCalderwood_3-1596815519403.png" style="width: 560px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/328657iA3E0CD863777142B/image-dimensions/560x389?v=v2" width="560" height="389" role="button" title="MattCalderwood_3-1596815519403.png" alt="MattCalderwood_3-1596815519403.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The report is split into the its report pages (Sections) - and each visual is then found under the 'Visiual Containers' array - in my example here, I only have a single visual.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The &lt;STRONG&gt;Config &lt;/STRONG&gt;property in this first (and only) entry - shows the internal name of your visual.&amp;nbsp; =&amp;gt; &lt;STRONG&gt;4babf0e10a7c5d8b6819&lt;/STRONG&gt;&lt;BR /&gt;If you look at the remaining contents you will find the visual title - this will help you identify which visual is which.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Note&lt;/STRONG&gt;: I think you will also need to supply the internal name for the report sections (ReportSection1) as shown in the JSON you posted.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;An alternative Option for discovering the ID's:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;If you are already embedding your report - you can use the GetVisuals function to get all visuals in a page.&lt;BR /&gt;&lt;A href="https://github.com/Microsoft/PowerBI-JavaScript/wiki/Get-Visuals" target="_blank"&gt;https://github.com/Microsoft/PowerBI-JavaScript/wiki/Get-Visuals&lt;/A&gt;&lt;BR /&gt;The response from this method call will include the internal name/ID of each visual.&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;Cheers, Matt&lt;/P&gt;</description>
    <pubDate>Fri, 07 Aug 2020 16:02:23 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-08-07T16:02:23Z</dc:date>
    <item>
      <title>Custom Visual in PowerBi Javascript</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Custom-Visual-in-PowerBi-Javascript/m-p/1280525#M25128</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm working on custom visual of PowerBi Javascript and i have a problem in this part of the code below:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture4.PNG" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/328596iA64B820846B4591F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Capture4.PNG" alt="Capture4.PNG" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't know where i can find the "visualContainer", i try with the title of my visual but it's not working.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture5.PNG" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/328600i2ACFB573E54A9815/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Capture5.PNG" alt="Capture5.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Than you.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Aug 2020 14:16:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Custom-Visual-in-PowerBi-Javascript/m-p/1280525#M25128</guid>
      <dc:creator>jugurtha</dc:creator>
      <dc:date>2020-08-07T14:16:56Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Visual in PowerBi Javascript</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Custom-Visual-in-PowerBi-Javascript/m-p/1280748#M25129</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/251443"&gt;@jugurtha&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;It is a little bit frustrating, but you can get the Visual ID by opening up the pbix file.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Start by making a copy of your PBIX report file&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MattCalderwood_0-1596815133872.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/328650i189A5AB614E144AA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MattCalderwood_0-1596815133872.png" alt="MattCalderwood_0-1596815133872.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Then rename the pbix file extension to .zip (pbix files are simply zip archives)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MattCalderwood_1-1596815214094.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/328651i08528E2A2C9678C3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MattCalderwood_1-1596815214094.png" alt="MattCalderwood_1-1596815214094.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;You can then browse the contents - open up the '&lt;STRONG&gt;reports&lt;/STRONG&gt;' folder inside - and look for a file called '&lt;STRONG&gt;Layout&lt;/STRONG&gt;'&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MattCalderwood_2-1596815297093.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/328652iF8B73DF1B9430804/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MattCalderwood_2-1596815297093.png" alt="MattCalderwood_2-1596815297093.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can then open this file in notepad - or another text editor...&lt;/P&gt;&lt;P&gt;The file contains JSON data defining your report contents and layout.&lt;BR /&gt;&lt;BR /&gt;If we take the contents of the file and view it in a JSON viewer - we can see the structure.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MattCalderwood_3-1596815519403.png" style="width: 560px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/328657iA3E0CD863777142B/image-dimensions/560x389?v=v2" width="560" height="389" role="button" title="MattCalderwood_3-1596815519403.png" alt="MattCalderwood_3-1596815519403.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The report is split into the its report pages (Sections) - and each visual is then found under the 'Visiual Containers' array - in my example here, I only have a single visual.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The &lt;STRONG&gt;Config &lt;/STRONG&gt;property in this first (and only) entry - shows the internal name of your visual.&amp;nbsp; =&amp;gt; &lt;STRONG&gt;4babf0e10a7c5d8b6819&lt;/STRONG&gt;&lt;BR /&gt;If you look at the remaining contents you will find the visual title - this will help you identify which visual is which.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Note&lt;/STRONG&gt;: I think you will also need to supply the internal name for the report sections (ReportSection1) as shown in the JSON you posted.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;An alternative Option for discovering the ID's:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;If you are already embedding your report - you can use the GetVisuals function to get all visuals in a page.&lt;BR /&gt;&lt;A href="https://github.com/Microsoft/PowerBI-JavaScript/wiki/Get-Visuals" target="_blank"&gt;https://github.com/Microsoft/PowerBI-JavaScript/wiki/Get-Visuals&lt;/A&gt;&lt;BR /&gt;The response from this method call will include the internal name/ID of each visual.&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;Cheers, Matt&lt;/P&gt;</description>
      <pubDate>Fri, 07 Aug 2020 16:02:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Custom-Visual-in-PowerBi-Javascript/m-p/1280748#M25129</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-08-07T16:02:23Z</dc:date>
    </item>
  </channel>
</rss>

