<?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 Create a Download Button for files not shared publicly. Need to get and pass token. in ArcGIS Experience Builder Questions</title>
    <link>https://community.esri.com/t5/arcgis-experience-builder-questions/create-a-download-button-for-files-not-shared/m-p/1076705#M2364</link>
    <description>&lt;P&gt;I have a need to create a custom Item Details page to keep thing more simple for our non-GIS users (90% of our users).&amp;nbsp; I'd like to create a button that allows the user to do a one click download of the data.&amp;nbsp; I have been able to do that &lt;STRONG&gt;IF &lt;/STRONG&gt;the dataset is shared publicly.&amp;nbsp; Unfortunately, none of our data can be public.&amp;nbsp; Our users have to sign into the organization to get to the application.&amp;nbsp; Is there a way to get and pass the Token&amp;nbsp;and pass it as part of the URL attached to the button?&amp;nbsp; If not, is there any other way to have a button download a file that isn't public?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The URL needed looks like this for data shared to the organization:&amp;nbsp;&lt;/P&gt;&lt;P data-unlink="true"&gt;https://ago-item-storage.s3.us-east-1.amazonaws.com/&amp;lt;itemID&amp;gt;/&amp;lt;name&amp;gt;.csv?X-Amz-Security-Token=&amp;lt;Token&amp;gt;&amp;amp;X-Amz-Algorithm=&amp;lt;AMZALG&amp;gt;&amp;amp;X-Amz-Date=&amp;lt;DATE&amp;gt;&amp;amp;X-Amz-SignedHeaders=host&amp;amp;X-Amz-Expires=300&amp;amp;X-Amz-Credential=&amp;lt;Cred&amp;gt;%2Fus-east-1%2Fs3%2Faws4_request&amp;amp;X-Amz-Signature=&amp;lt;SIGNATURE&amp;gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The URL for public is much more simple:&lt;/P&gt;&lt;P data-unlink="true"&gt;https://&amp;lt;orgname&amp;gt;.maps.arcgis.com/sharing/rest/content/items/&amp;lt;itemid&amp;gt;/data&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for any ideas!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Annotation 2021-07-08 090111.png" style="width: 428px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/17969i7B3A7E8D32DE9159/image-dimensions/428x333?v=v2" width="428" height="333" role="button" title="Annotation 2021-07-08 090111.png" alt="Annotation 2021-07-08 090111.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 08 Jul 2021 17:52:09 GMT</pubDate>
    <dc:creator>KevinMWright13</dc:creator>
    <dc:date>2021-07-08T17:52:09Z</dc:date>
    <item>
      <title>Create a Download Button for files not shared publicly. Need to get and pass token.</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/create-a-download-button-for-files-not-shared/m-p/1076705#M2364</link>
      <description>&lt;P&gt;I have a need to create a custom Item Details page to keep thing more simple for our non-GIS users (90% of our users).&amp;nbsp; I'd like to create a button that allows the user to do a one click download of the data.&amp;nbsp; I have been able to do that &lt;STRONG&gt;IF &lt;/STRONG&gt;the dataset is shared publicly.&amp;nbsp; Unfortunately, none of our data can be public.&amp;nbsp; Our users have to sign into the organization to get to the application.&amp;nbsp; Is there a way to get and pass the Token&amp;nbsp;and pass it as part of the URL attached to the button?&amp;nbsp; If not, is there any other way to have a button download a file that isn't public?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The URL needed looks like this for data shared to the organization:&amp;nbsp;&lt;/P&gt;&lt;P data-unlink="true"&gt;https://ago-item-storage.s3.us-east-1.amazonaws.com/&amp;lt;itemID&amp;gt;/&amp;lt;name&amp;gt;.csv?X-Amz-Security-Token=&amp;lt;Token&amp;gt;&amp;amp;X-Amz-Algorithm=&amp;lt;AMZALG&amp;gt;&amp;amp;X-Amz-Date=&amp;lt;DATE&amp;gt;&amp;amp;X-Amz-SignedHeaders=host&amp;amp;X-Amz-Expires=300&amp;amp;X-Amz-Credential=&amp;lt;Cred&amp;gt;%2Fus-east-1%2Fs3%2Faws4_request&amp;amp;X-Amz-Signature=&amp;lt;SIGNATURE&amp;gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The URL for public is much more simple:&lt;/P&gt;&lt;P data-unlink="true"&gt;https://&amp;lt;orgname&amp;gt;.maps.arcgis.com/sharing/rest/content/items/&amp;lt;itemid&amp;gt;/data&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for any ideas!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Annotation 2021-07-08 090111.png" style="width: 428px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/17969i7B3A7E8D32DE9159/image-dimensions/428x333?v=v2" width="428" height="333" role="button" title="Annotation 2021-07-08 090111.png" alt="Annotation 2021-07-08 090111.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jul 2021 17:52:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/create-a-download-button-for-files-not-shared/m-p/1076705#M2364</guid>
      <dc:creator>KevinMWright13</dc:creator>
      <dc:date>2021-07-08T17:52:09Z</dc:date>
    </item>
  </channel>
</rss>

