Forum Discussion

CDavies's avatar
CDavies
Resolver I
6 years ago
Solved

Returning Images via the API using Path rather than ID

Hi   I have some image assets stored in a report server folder which work correctly in dashboards using the following api reference:   https://MyUrl/PBIReports/api/v2.0/Resources(c7ba28cc-60be-4...
  • d_gosbell's avatar
    6 years ago

    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. 

     

    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:

     

    https://MyUrl/reportserver?/MyPath/Text-Blue.png&rs:Command=GetResourceContents