<?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>Attempting to download document &amp;quot;https://myappiansite.appiancloud.com/suite/doc/123456&amp;quot; programmatically using C#</title><link>https://community.appian.com/discussions/f/integrations/17729/attempting-to-download-document-https-myappiansite-appiancloud-com-suite-doc-123456-programmatically-using-c</link><description>Hi all, 
 I am trying to write a C# program to integrate my Appian cases with an external electronic document records management system (EDRMS). 
 The program needs to download the documents that have been uploaded for each case in Appian and then ensure</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Attempting to download document "https://myappiansite.appiancloud.com/suite/doc/123456" programmatically using C#</title><link>https://community.appian.com/thread/69811?ContentTypeID=1</link><pubDate>Wed, 09 Oct 2019 02:04:03 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:017bcd4a-8caf-49c9-9341-6d7455a2e7ec</guid><dc:creator>davidb545</dc:creator><description>&lt;p&gt;Thanks! That&amp;#39;s resolved the problem.&amp;nbsp; Generated a Document download Web-Api using the wizard, added the document types I require to the code and used that in place of the &amp;quot;/suite/doc/123456&amp;quot; url, and it works perfectly.&amp;nbsp; Cheers! :-)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Attempting to download document "https://myappiansite.appiancloud.com/suite/doc/123456" programmatically using C#</title><link>https://community.appian.com/thread/69796?ContentTypeID=1</link><pubDate>Tue, 08 Oct 2019 12:58:10 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:77b0bf9e-b9c8-47fe-bec1-ca8a6e809b56</guid><dc:creator>Peter Lewis</dc:creator><description>&lt;p&gt;I believe there are security restrictions that prevent downloading documents in this way. Instead of trying to use the URL directly, I&amp;#39;d suggest creating a Web API that can send the document. When you first create a Web API, it gives a template for &amp;quot;Document Download&amp;quot;. If you select that, it returns an API that can accept a document ID and&amp;nbsp;return the corresponding document.&lt;/p&gt;
&lt;p&gt;Then, you should be able to call this API to return any document you need.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>