<?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: Returning Images via the API using Path rather than ID in Report Server</title>
    <link>https://community.fabric.microsoft.com/t5/Report-Server/Returning-Images-via-the-API-using-Path-rather-than-ID/m-p/1128523#M14386</link>
    <description>&lt;P&gt;Perfect Darren, the web service end point works. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Shall I raise a bug?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks.&lt;/P&gt;</description>
    <pubDate>Fri, 29 May 2020 07:16:36 GMT</pubDate>
    <dc:creator>CDavies</dc:creator>
    <dc:date>2020-05-29T07:16:36Z</dc:date>
    <item>
      <title>Returning Images via the API using Path rather than ID</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Returning-Images-via-the-API-using-Path-rather-than-ID/m-p/1127313#M14379</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have some image assets stored in a report server folder which work correctly in dashboards using the following api reference:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;https://MyUrl/PBIReports/api/v2.0/Resources(c7ba28cc-60be-4a0c-a49a-c7b17b7d62d4)/Content/$value&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;However I need to be able to use these image assets in a dashboard by using the path method rather than the Id method.&amp;nbsp; According to the documentation I should be able to use this:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;https://MyUrl/PBIReports/api/v2.0/Resources(path='/MyPath/Text-Blue.png')&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;Unfortunately this returns an error:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
  "@odata.context":"https://MyUrl/PBIReports/api/v2.0/$metadata#Resources/$entity","Id":"c7ba28cc-60be-4a0c-a49a-c7b17b7d62d4","Name":"Text-Blue.png","Description":null,"Path":"/MyPath/Text-Blue.png","Type":"Resource","Hidden":false,"Size":2740,"ModifiedBy":"MyLogin","ModifiedDate":"2019-04-16T10:51:41.853+01:00","CreatedBy":"MyLogin","CreatedDate":"2019-04-16T10:51:41.853+01:00","ParentFolderId":"dd5509b6-8794-4d7e-97f7-b9781536b785","IsFavorite":false,"Roles":[
    
  ],"ContentType":"image/png","Content":""
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;The error message suggests that the syntax is correct as the Id in the error is the same one when I use the ID method but it isn't displaying the image.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;Any ideas on what I'm missing?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;Many thanks&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;PBIRS: Jan2020 | Desktop Jan 2020&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 May 2020 16:59:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Returning-Images-via-the-API-using-Path-rather-than-ID/m-p/1127313#M14379</guid>
      <dc:creator>CDavies</dc:creator>
      <dc:date>2020-05-28T16:59:23Z</dc:date>
    </item>
    <item>
      <title>Re: Returning Images via the API using Path rather than ID</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Returning-Images-via-the-API-using-Path-rather-than-ID/m-p/1127867#M14381</link>
      <description>&lt;P&gt;This was a bug that was introduced recently. I was told by a contact at Microsoft that this had been fixed but I just double checked the recent May 2020 release and this is still happening. I looks like the GET against the /Resources works with path= to get the metadata, but when you add /Content/$value, then it breaks.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I did just find one work around, you can use the WebService endpoint instead of the Portal's REST API and use a request like the following:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;https://MyUrl/reportserver?/MyPath/Text-Blue.png&amp;amp;rs:Command=GetResourceContents&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 May 2020 22:25:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Returning-Images-via-the-API-using-Path-rather-than-ID/m-p/1127867#M14381</guid>
      <dc:creator>d_gosbell</dc:creator>
      <dc:date>2020-05-28T22:25:43Z</dc:date>
    </item>
    <item>
      <title>Re: Returning Images via the API using Path rather than ID</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Returning-Images-via-the-API-using-Path-rather-than-ID/m-p/1128523#M14386</link>
      <description>&lt;P&gt;Perfect Darren, the web service end point works. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Shall I raise a bug?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 29 May 2020 07:16:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Returning-Images-via-the-API-using-Path-rather-than-ID/m-p/1128523#M14386</guid>
      <dc:creator>CDavies</dc:creator>
      <dc:date>2020-05-29T07:16:36Z</dc:date>
    </item>
  </channel>
</rss>

