<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Amazon bucket S3</title><link>https://community.appian.com/discussions/f/integrations/29409/amazon-bucket-s3</link><description>Hi, for the process we are automating, we need to display a document saved in the S3 bucket. 
 To do this we used: 
 1) an integration for downloading from the bucket to an Appian folder 
 2) a safelink with web API/ a documentDownloadLink to download</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Amazon bucket S3</title><link>https://community.appian.com/thread/116558?ContentTypeID=1</link><pubDate>Thu, 20 Jul 2023 15:01:45 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1eebdd73-eff4-48f9-ae05-00fdbffeb2e3</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;So that integration already returns a document. I do not understand why you search for documents and all this indexing and splitting action.&lt;/p&gt;
&lt;p&gt;Stackoverflow has some interesting reading about how to set headers:&amp;nbsp;&lt;a href="https://stackoverflow.com/questions/33074726/hows-file-downloaded-by-the-browser-over-http"&gt;https://stackoverflow.com/questions/33074726/hows-file-downloaded-by-the-browser-over-http&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;And I would like to repeat my question! What is the issue? Pointing you browser to that API endpoint should make it show or download that image.&lt;/p&gt;
&lt;p&gt;In general, when I have a tricky problem, I cut it into simpler pieces, solve each, and reassemble it. Try to make this work with a document that you uploaded to Appian, referenced by a constant. Once that works, replace it with the S3 call.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.freecodecamp.org/news/how-to-think-like-a-programmer-lessons-in-problem-solving-d1d8bf1de7d2"&gt;www.freecodecamp.org/.../how-to-think-like-a-programmer-lessons-in-problem-solving-d1d8bf1de7d2&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Amazon bucket S3</title><link>https://community.appian.com/thread/116556?ContentTypeID=1</link><pubDate>Thu, 20 Jul 2023 14:49:55 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f0124059-3c52-46c8-91e2-65e2ac9ca46c</guid><dc:creator>eleonort0001</dc:creator><description>&lt;p&gt;Yes, we agree the problem could be the firtss 4 lines, where we do the following:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span class="ui-provider fz b c d e f g h i j k l m n o p q r s t u v w x y z ab ac ae af ag ah ai aj ak" dir="ltr"&gt;1) The local!id variable stores the numeric id of the last document downloaded using the integration API in the folder specified by the constant (we use the parameter fv!result of the&amp;nbsp;rule!gfdownlodmultiple()&amp;nbsp;to select the document already downloaded)&lt;br /&gt;2) Local!pathArray is used to get a URL containing the name of the downloaded document.&lt;br /&gt; &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span class="ui-provider fz b c d e f g h i j k l m n o p q r s t u v w x y z ab ac ae af ag ah ai aj ak" dir="ltr"&gt;Our issue is the following: the use of this code does not activate the integration, so it is still necessary to do 2 different clicks for the download of the document.&lt;br /&gt; How can configure the headers&amp;nbsp;you were talking about to call the integration and use its result directly&amp;nbsp;in the Web API? Thanks for the reply, Eleonora&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Amazon bucket S3</title><link>https://community.appian.com/thread/116542?ContentTypeID=1</link><pubDate>Thu, 20 Jul 2023 11:53:04 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5ab774d8-ca42-49dc-a355-2dbeb26224ff</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;I do not understand what you do in the first 4 lines. That does not feel good.&lt;/p&gt;
&lt;p&gt;But in general, this is what I would expect to do myself. What is the issue?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Amazon bucket S3</title><link>https://community.appian.com/thread/116541?ContentTypeID=1</link><pubDate>Thu, 20 Jul 2023 11:20:33 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ec1173ba-7866-472a-b4e8-44647dac27e1</guid><dc:creator>eleonort0001</dc:creator><description>&lt;p&gt;Thanks for your answer Stefan, it is the solution we are trying but we are having some problem with the configuration of the webAPI. These is what we have done till now: we actually need to execute the integration before, than the request of the webAPI open the last downloaded document (screenshot attached). Do you have suggestions to make the webAPI works properly to download and open the file simultaneously? Thank you, Eleonora&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/18/2555.integration.png" /&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/18/webAPI.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Amazon bucket S3</title><link>https://community.appian.com/thread/116506?ContentTypeID=1</link><pubDate>Thu, 20 Jul 2023 08:01:42 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1b374221-196b-4c8b-97b2-df508ea00581</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;You could try to create a web API in Appian which calls the S3 integration to download the file and then returns that file as the body. You might have to adjust some headers to tell the browser to download the file instead of trying to display it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>