<?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 Retrieving thumbnail path from portal item in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/retrieving-thumbnail-path-from-portal-item/m-p/1165152#M8038</link>
    <description>&lt;P&gt;I want to retrieve the thumbnail path of a layer at our enterprise portal, and while that is straight forward I have the challenge, that I cannot use the path returned&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;https://our-portal.com/portal/sharing/rest/content/items/580d1a480196436fb7e2e1170466ba94/info/thumbnail/thumbnail1548171039005.png&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Because there I am getting an Error 403 (You do not have permissions to access this resource or perform this operation.).&lt;/P&gt;&lt;P&gt;The layer itself I can create using&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;string curService = $"https://our-portal.com/portal/home/item.html?id={guid}";
await QueuedTask.Run(() =&amp;gt; LayerFactory.Instance.CreateLayer(new Uri(curService, UriKind.Absolute), activeMapView.Map, 0));&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I connect to the thumbnail?&lt;/P&gt;</description>
    <pubDate>Mon, 18 Apr 2022 15:20:09 GMT</pubDate>
    <dc:creator>TomGeo</dc:creator>
    <dc:date>2022-04-18T15:20:09Z</dc:date>
    <item>
      <title>Retrieving thumbnail path from portal item</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/retrieving-thumbnail-path-from-portal-item/m-p/1165152#M8038</link>
      <description>&lt;P&gt;I want to retrieve the thumbnail path of a layer at our enterprise portal, and while that is straight forward I have the challenge, that I cannot use the path returned&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;https://our-portal.com/portal/sharing/rest/content/items/580d1a480196436fb7e2e1170466ba94/info/thumbnail/thumbnail1548171039005.png&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Because there I am getting an Error 403 (You do not have permissions to access this resource or perform this operation.).&lt;/P&gt;&lt;P&gt;The layer itself I can create using&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;string curService = $"https://our-portal.com/portal/home/item.html?id={guid}";
await QueuedTask.Run(() =&amp;gt; LayerFactory.Instance.CreateLayer(new Uri(curService, UriKind.Absolute), activeMapView.Map, 0));&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I connect to the thumbnail?&lt;/P&gt;</description>
      <pubDate>Mon, 18 Apr 2022 15:20:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/retrieving-thumbnail-path-from-portal-item/m-p/1165152#M8038</guid>
      <dc:creator>TomGeo</dc:creator>
      <dc:date>2022-04-18T15:20:09Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieving thumbnail path from portal item</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/retrieving-thumbnail-path-from-portal-item/m-p/1165564#M8042</link>
      <description>&lt;P&gt;The solution to get to the thumbnail is to add the token of your current session to the thumbnail path.&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;ArcGISPortal activePortal = ArcGISPortalManager.Current.GetActivePortal();
string sessionToken = activePortal.GetToken();
_thumbnail = $"{portalItem.ThumbnailPath}?token={_portalToken}";&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2022 10:13:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/retrieving-thumbnail-path-from-portal-item/m-p/1165564#M8042</guid>
      <dc:creator>TomGeo</dc:creator>
      <dc:date>2022-04-19T10:13:45Z</dc:date>
    </item>
  </channel>
</rss>

