<?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>Download a Document from s3 using webservice call</title><link>https://community.appian.com/discussions/f/integrations/10183/download-a-document-from-s3-using-webservice-call</link><description>We are trying to integrate appian with an internal Java application . The design is going on . The Java application is responsible for connecting to s3 and providing us the document using a webservice call . We will call the API provided by Java application</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Download a Document from s3 using webservice call</title><link>https://community.appian.com/thread/45038?ContentTypeID=1</link><pubDate>Tue, 25 Apr 2017 13:01:19 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2bb55f1f-258d-45f4-9dda-6eadb642ec73</guid><dc:creator>nathan.schmitz</dc:creator><description>If fetching the entire document is the only feasible approach, you probably need to build a plugin that will contain an expression or activity that downloads the document into Appian and returns the Appian document.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Download a Document from s3 using webservice call</title><link>https://community.appian.com/thread/45027?ContentTypeID=1</link><pubDate>Mon, 24 Apr 2017 20:07:32 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:864f3eae-46e1-48ee-bbbd-dbcefb2a5f0c</guid><dc:creator>Ben Edwards</dc:creator><description>Very interesting, thanks for the info. Obviously I haven&amp;amp;#x27;t tried this myself but might be worth looking into at some point. I know a lot of the functionality used by servlets can be replicated via Web APIs but perhaps as you&amp;amp;#x27;ve noted this it proves to be too limiting for this use case.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Download a Document from s3 using webservice call</title><link>https://community.appian.com/thread/45026?ContentTypeID=1</link><pubDate>Mon, 24 Apr 2017 19:58:46 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4ff418ce-4873-443d-ac74-ac325764edb2</guid><dc:creator>rawich</dc:creator><description>&lt;p&gt;@bene, it may be possible, but there are many challenges with using Web API for this requirement. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;There is a Shared Component &amp;quot;Amazon S3 Utilities&amp;quot; available as Smart Service plug-in. With that, you can download a file from Amazon S3 into Appian document.&lt;br /&gt;Challenge #1 - You have to call the Smart Service by starting a new process, but you won&amp;#39;t know when the the file is&amp;nbsp;ready, and you can&amp;#39;t wait either.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you got through that hurdle, you can try to extract Appian document download URL from&amp;nbsp;a deprecated function&amp;nbsp;linktodocument(), then redirect the browser to download the document. &amp;nbsp;But yes, it&amp;#39;s deprecated, so this solution will only be temporary.&lt;/p&gt;
&lt;p&gt;There is also a concern about cleaning up, after the file is downloaded.&lt;/p&gt;
&lt;p&gt;I can imagine a quick and dirty proof-of-concept can be implemented&amp;nbsp;using Web API, but not as a production ready solution.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://forum.appian.com/suite/help/16.2/Scripting_Functions.html#linktodocument"&gt;forum.appian.com/.../Scripting_Functions.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Download a Document from s3 using webservice call</title><link>https://community.appian.com/thread/45021?ContentTypeID=1</link><pubDate>Mon, 24 Apr 2017 16:33:57 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:734da746-663c-4083-a3a2-c37ea2ad5890</guid><dc:creator>Ben Edwards</dc:creator><description>Seems like you could use a Web API for it then too?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Download a Document from s3 using webservice call</title><link>https://community.appian.com/thread/45019?ContentTypeID=1</link><pubDate>Mon, 24 Apr 2017 16:17:19 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4342403d-a863-4053-b0e5-966492f36ad5</guid><dc:creator>rawich</dc:creator><description>I accomplished similar requirement using Servlet plug-in.  &lt;br /&gt;
&lt;br /&gt;
From Appian UI, you can create a link to the Servlet with document unique identifier in the URI (as query parameter).  When the user clicked on the link to the Servlet, your Java code do all these works in one go: call S3 service to download the file into temporary directory, determine file type to set the correct content type of the file, send the file content to the browser, delete the temporary file.&lt;br /&gt;
&lt;br /&gt;
There are a few gotchas along the way, but your Java developers should be able to handle them.  Let me know if you want to go this route, and have further questions.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Download a Document from s3 using webservice call</title><link>https://community.appian.com/thread/45018?ContentTypeID=1</link><pubDate>Mon, 24 Apr 2017 15:51:24 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:fbe90403-0814-4b61-8c01-836fa20c3b5c</guid><dc:creator>Ben Edwards</dc:creator><description>This seems like an interesting issue. I&amp;amp;#x27;m not sure at this point that there&amp;amp;#x27;s a way to correlate users with access to S3 to users within Appian to help bridge the gap between the two? I don&amp;amp;#x27;t think a new S3 bucket policy would do the trick without some custom development on the Appian side either.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Download a Document from s3 using webservice call</title><link>https://community.appian.com/thread/45016?ContentTypeID=1</link><pubDate>Mon, 24 Apr 2017 15:24:30 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0fe1cb78-fcc7-4fcf-8abd-0dfafab90209</guid><dc:creator>Shreehari Gopalakrishnan Ramanan</dc:creator><description>You are correct . But our architecture team is limiting the direct access to S3.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Download a Document from s3 using webservice call</title><link>https://community.appian.com/thread/44979?ContentTypeID=1</link><pubDate>Fri, 21 Apr 2017 13:29:23 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f148d9d1-dacd-4fe9-b429-5507386c2fbe</guid><dc:creator>nathan.schmitz</dc:creator><description>&lt;p&gt;Is there a reason why you can&amp;#39;t simply construct or fetch a link to the document in S3 and display the link to the user so that they can download the document? &amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>