<?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>Documents upload and delete</title><link>https://community.appian.com/discussions/f/user-interface/18265/documents-upload-and-delete</link><description>Hi All, 
 I&amp;#39;m new to Appian and have a requirement where a user should upload multiple documents and delete any accidentally uploaded documents. 
 On submit, the process model would kick start where the documents details get stored in database. Also,we</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Documents upload and delete</title><link>https://community.appian.com/thread/71883?ContentTypeID=1</link><pubDate>Tue, 04 Feb 2020 15:18:35 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9f786527-5df5-4463-ba99-1a20ae0c1cad</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;If it&amp;#39;s the user that decides an incorrect file was uploaded, that&amp;#39;s fine (and a normal use case) -- you would then need to build in the capability in your interface for the user to &amp;quot;delete&amp;quot; the file (i suggest for record-keeping purposes, you not actually delete files except for ones used&amp;nbsp;&lt;strong&gt;very temporarily&lt;/strong&gt;, but instead, move them to a special designated location within Appian&amp;#39;s folder structure for &amp;quot;deleted&amp;quot; files, and have a flag in the database table for each document to also indicate its &amp;quot;deleted&amp;quot; status).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The recipe Stewart posted in his earlier reply would only need a small addition&amp;nbsp;to accomplish this - add an extra column at the end of the grid, and configure it to contain a &amp;quot;delete&amp;quot; link (either text, or icon, etc), which could then submit the form, mark that document as &amp;quot;deleted&amp;quot; in the database and move it to the &amp;quot;deleted&amp;quot; folder location (or actually delete it if you are required to), then loop back to the same form again.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Documents upload and delete</title><link>https://community.appian.com/thread/71882?ContentTypeID=1</link><pubDate>Tue, 04 Feb 2020 15:09:25 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:db6c5a0b-2a2f-4771-bcca-0dff8eaa6ab4</guid><dc:creator>srilakshmit</dc:creator><description>&lt;p&gt;Hi Mike,&lt;/p&gt;
&lt;p&gt;Thanks for clarifying. &lt;/p&gt;
&lt;p&gt;What if user upload an incorrect file and submit which gets stored in database. So he needs to upload the file again and delete the older document.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Documents upload and delete</title><link>https://community.appian.com/thread/71881?ContentTypeID=1</link><pubDate>Tue, 04 Feb 2020 14:40:44 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a0ca4db0-69a4-4edd-b2ae-35f355294043</guid><dc:creator>Stewart Burchell</dc:creator><description>&lt;p&gt;So...it&amp;#39;s a little unclear in places what you&amp;#39;re asking for but I can try to cover all the bases...so:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;in your interface you can use the&amp;nbsp;&lt;a href="https://docs.appian.com/suite/help/19.3/File_Upload_Component.html"&gt;https://docs.appian.com/suite/help/19.3/File_Upload_Component.html&lt;/a&gt;&amp;nbsp;to upload files. This comes with the ability to remove the file within the same component BEFORE you submit the form to the process. That might address your requirement to remove documents accidentally uploaded, but only BEFORE you submit the form.&lt;/li&gt;
&lt;li&gt;once the form has been submitted the document objects are now available to your application and you can, for example, render them in an interface and could run a deletion process from that point if you need to delete AFTER the original upload form has been submitted.&lt;/li&gt;
&lt;li&gt;A typical pattern is that a database table is used to hold metadata about the document, including the document&amp;#39;s objectId (as a &amp;#39;pointer&amp;#39; to the document). You can then use this database table as the source for a user interface table, and then you can run deletion activity from this interface (again, there are a variety of patterns available to you)&lt;/li&gt;
&lt;li&gt;Here&amp;#39;s one recipe that might help you get started:&amp;nbsp;&lt;a href="https://docs.appian.com/suite/help/19.3/recipe-display-multiple-files-in-a-grid-for-editing.html"&gt;https://docs.appian.com/suite/help/19.3/recipe-display-multiple-files-in-a-grid-for-editing.html&lt;/a&gt;&amp;nbsp;(there are plenty of other examples you can draw upon to help you achieve your objectives)&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Documents upload and delete</title><link>https://community.appian.com/thread/71880?ContentTypeID=1</link><pubDate>Tue, 04 Feb 2020 14:30:08 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9c026e4e-e5b0-471b-89e1-07bf060745aa</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;I&amp;#39;m a little confused by what your requirement / desired process flow is here?&lt;/p&gt;
[quote userid="43346" url="~/discussions/f/user-interface/18265/documents-upload-and-delete"]a user should upload multiple documents[/quote]
&lt;p&gt;(simple enough...)&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote userid="43346" url="~/discussions/f/user-interface/18265/documents-upload-and-delete"]and delete any accidentally uploaded documents[/quote]
&lt;p&gt;what/who is determining which document(s) are considered as &amp;quot;accidentally uploaded&amp;quot;?&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote userid="43346" url="~/discussions/f/user-interface/18265/documents-upload-and-delete"]the process model would kick start where the documents details get stored in database.[/quote]
&lt;p&gt;(this sounds fine also. should be straightforward to implement.)&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote userid="43346" url="~/discussions/f/user-interface/18265/documents-upload-and-delete"]Also,we need to delete the documents[/quote]
&lt;p&gt;Why would you delete the documents just after uploading?&amp;nbsp; Am I missing something?&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote userid="43346" url="~/discussions/f/user-interface/18265/documents-upload-and-delete"]&lt;p&gt;After file upload , Need to get the link to download.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;FYI there isn&amp;#39;t really any &amp;quot;link&amp;quot; to get, really - all you need is the &lt;strong&gt;Appian Document ID&lt;/strong&gt; for each uploaded document (which you get automatically after submitting the original form the document(s) were uploaded on), and&amp;nbsp;&lt;em&gt;a!documentDownloadLink()&lt;/em&gt;&amp;nbsp;on an interface.&amp;nbsp; So just make sure your database row for a document includes its &lt;strong&gt;Appian Document ID&lt;/strong&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>