<?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: Show version or displayName from pbiviz.json on visual in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Show-version-or-displayName-from-pbiviz-json-on-visual/m-p/2879232#M39536</link>
    <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I think you can try to change the GUID in custom visual json code.&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;{
    "visual": {
        "name": "&lt;STRONG&gt;CustomVisual&lt;/STRONG&gt;", // internal visual name (&lt;U&gt;should not contain spaces&lt;/U&gt;)
        "displayName": "&lt;STRONG&gt;Custom Visual!&lt;/STRONG&gt;", // visual name displayed to user (used in gallery)
        "guid": "PBI_CV_xxxxxxx", // a unique id for this visual MUST BE UNIQUE
        "visualClassName": "&lt;STRONG&gt;Custom&lt;/STRONG&gt;" // the entry class for your visual. (By default &lt;STRONG&gt;Visual&lt;/STRONG&gt;: visual.ts)
        "version": "1.0.0", // visual version. Should be semantic version (increment if you update the visual)
        "description": "", // description used in gallery
        "supportUrl": "", // url to where users can get support for this visual
        "gitHubUrl": "" // url to the source in github (if applicable)
    },&lt;/PRE&gt;
&lt;P&gt;Here is a &lt;A href="https://community.powerbi.com/t5/Developer/change-custom-visual-name/m-p/152024" target="_self"&gt;solved post&lt;/A&gt; with similar issue like yours. I hope it could help you solve your issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Rico Zhou&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 02 Nov 2022 07:29:46 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-11-02T07:29:46Z</dc:date>
    <item>
      <title>Show version or displayName from pbiviz.json on visual</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Show-version-or-displayName-from-pbiviz-json-on-visual/m-p/2877125#M39521</link>
      <description>&lt;P&gt;I want to show version or displayName from pbiviz.json in my visual.&lt;/P&gt;&lt;P&gt;In small print just to make it easy for knowing which reports need new versions of my visual.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can not find a method to access these values. Is there a way to do that?&lt;/P&gt;</description>
      <pubDate>Tue, 01 Nov 2022 11:43:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Show-version-or-displayName-from-pbiviz-json-on-visual/m-p/2877125#M39521</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-11-01T11:43:53Z</dc:date>
    </item>
    <item>
      <title>Re: Show version or displayName from pbiviz.json on visual</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Show-version-or-displayName-from-pbiviz-json-on-visual/m-p/2879232#M39536</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I think you can try to change the GUID in custom visual json code.&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;{
    "visual": {
        "name": "&lt;STRONG&gt;CustomVisual&lt;/STRONG&gt;", // internal visual name (&lt;U&gt;should not contain spaces&lt;/U&gt;)
        "displayName": "&lt;STRONG&gt;Custom Visual!&lt;/STRONG&gt;", // visual name displayed to user (used in gallery)
        "guid": "PBI_CV_xxxxxxx", // a unique id for this visual MUST BE UNIQUE
        "visualClassName": "&lt;STRONG&gt;Custom&lt;/STRONG&gt;" // the entry class for your visual. (By default &lt;STRONG&gt;Visual&lt;/STRONG&gt;: visual.ts)
        "version": "1.0.0", // visual version. Should be semantic version (increment if you update the visual)
        "description": "", // description used in gallery
        "supportUrl": "", // url to where users can get support for this visual
        "gitHubUrl": "" // url to the source in github (if applicable)
    },&lt;/PRE&gt;
&lt;P&gt;Here is a &lt;A href="https://community.powerbi.com/t5/Developer/change-custom-visual-name/m-p/152024" target="_self"&gt;solved post&lt;/A&gt; with similar issue like yours. I hope it could help you solve your issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Rico Zhou&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2022 07:29:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Show-version-or-displayName-from-pbiviz-json-on-visual/m-p/2879232#M39536</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-11-02T07:29:46Z</dc:date>
    </item>
    <item>
      <title>Re: Show version or displayName from pbiviz.json on visual</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Show-version-or-displayName-from-pbiviz-json-on-visual/m-p/2879391#M39537</link>
      <description>&lt;P&gt;I have no idea how this should help solve my problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my visual to access the metadata (contained in the pbiviz.json) and then display that in a label in the visual.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;something like&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var version = this.metadata.visual.version;&lt;/LI-CODE&gt;&lt;P&gt;This is not the correct syntax, but I can not find any info whether this is possible or how to do it.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2022 08:28:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Show-version-or-displayName-from-pbiviz-json-on-visual/m-p/2879391#M39537</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-11-02T08:28:50Z</dc:date>
    </item>
    <item>
      <title>Re: Show version or displayName from pbiviz.json on visual</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Show-version-or-displayName-from-pbiviz-json-on-visual/m-p/2887823#M39580</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Add &lt;FONT face="courier new,courier"&gt;"resolveJsonModule": true&lt;/FONT&gt; to the &lt;FONT face="courier new,courier"&gt;compilerOptions&lt;/FONT&gt; in your &lt;FONT face="courier new,courier"&gt;tsconfig.json&lt;/FONT&gt; [&lt;A href="https://www.typescriptlang.org/tsconfig#resolveJsonModule" target="_self"&gt;documentation&lt;/A&gt;].&lt;/P&gt;
&lt;P&gt;Add an &lt;FONT face="courier new,courier"&gt;import&lt;/FONT&gt; in the desired &lt;FONT face="courier new,courier"&gt;.ts&lt;/FONT&gt; file for your &lt;FONT face="courier new,courier"&gt;pbiviz.json&lt;/FONT&gt;. Assuming that you're using &lt;FONT face="courier new,courier"&gt;src/visual.ts&lt;/FONT&gt;, this would look something like the following:&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;import * as pbiviz from '../pbiviz.json';&lt;/LI-CODE&gt;
&lt;P&gt;You can now access the JSON from &lt;FONT face="courier new,courier"&gt;pbiviz.json&lt;/FONT&gt; as if it were an object, e.g.:&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;pbiviz.visual.displayName;&lt;/LI-CODE&gt;
&lt;P&gt;I'm using this in Deneb for a similar reason. &lt;A href="https://github.com/deneb-viz/deneb/blob/4a5e83368cab5240c8f36e63d7bbad99c3539286/src/core/utils/config.ts#L5" target="_self"&gt;You can see where I'm doing this here&lt;/A&gt; if you need it for reference.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 06 Nov 2022 21:23:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Show-version-or-displayName-from-pbiviz-json-on-visual/m-p/2887823#M39580</guid>
      <dc:creator>dm-p</dc:creator>
      <dc:date>2022-11-06T21:23:23Z</dc:date>
    </item>
    <item>
      <title>Re: Show version or displayName from pbiviz.json on visual</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Show-version-or-displayName-from-pbiviz-json-on-visual/m-p/2888469#M39594</link>
      <description>&lt;P&gt;Yes!&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;/P&gt;&lt;P&gt;As simple as that.&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2022 07:26:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Show-version-or-displayName-from-pbiviz-json-on-visual/m-p/2888469#M39594</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-11-07T07:26:31Z</dc:date>
    </item>
  </channel>
</rss>

