<?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>Document Id</title><link>https://community.appian.com/discussions/f/user-interface/13164/document-id</link><description>Hello Everyone, 
 I&amp;#39;ve a requirement where 
 In step 1 User will upload a document from Form-1 
 In step 2 User can download the document which was uploaded in step 1 and can re-upload it after editing from Form-2, the only condition is Document Id should</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Document Id</title><link>https://community.appian.com/thread/59520?ContentTypeID=1</link><pubDate>Fri, 24 Aug 2018 08:39:05 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7886518c-3f76-410d-84b0-89f1d1e425c0</guid><dc:creator>Rahul Gundu</dc:creator><description>In fileUploadField component Target will be either document or folder (It won&amp;#39;t accept Array value). When you provide document for &amp;#39;target&amp;#39; property, component expects only one document to create a new version of a document. &lt;br /&gt;
If you have multiple documents to replace, you can use looping function, which will generate multiple fileUploadComponents, you can replace one at a time. &lt;br /&gt;
Please try below sample code.&lt;br /&gt;
&lt;br /&gt;
{&lt;br /&gt;
  a!richTextDisplayField(&lt;br /&gt;
    labelPosition: &amp;quot;COLLAPSED&amp;quot;,&lt;br /&gt;
    value: a!richTextItem(&lt;br /&gt;
      text: &amp;quot;Replace Documents&amp;quot;,&lt;br /&gt;
      style: &amp;quot;STRONG&amp;quot;&lt;br /&gt;
    )&lt;br /&gt;
  ),&lt;br /&gt;
  a!forEach(&lt;br /&gt;
    items: ri!doc_documentsFromFolder,&lt;br /&gt;
    expression: {&lt;br /&gt;
      a!fileUploadField(&lt;br /&gt;
        labelPosition: &amp;quot;COLLAPSED&amp;quot;,&lt;br /&gt;
        maxSelections: 1,&lt;br /&gt;
        target: fv!item,&lt;br /&gt;
        value: fv!item,&lt;br /&gt;
        saveInto: fv!item&lt;br /&gt;
      )&lt;br /&gt;
    }&lt;br /&gt;
  )&lt;br /&gt;
}&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Document Id</title><link>https://community.appian.com/thread/59510?ContentTypeID=1</link><pubDate>Fri, 24 Aug 2018 06:59:23 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ae0a00cb-6ed1-4591-91de-0983bf31de6a</guid><dc:creator>gauravs0002</dc:creator><description>Hi Rahul,&lt;br /&gt;
&lt;br /&gt;
The above method is working fine if i am uploading a single file, but when i am uploading multiple file then its is asking to have target value to max 1 else if I am using the folder constant then its again creating documents with different Id.&lt;br /&gt;
&lt;br /&gt;
Kindly suggest.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Document Id</title><link>https://community.appian.com/thread/59415?ContentTypeID=1</link><pubDate>Wed, 22 Aug 2018 05:57:47 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3472cedd-a36d-4719-b704-321bf4732261</guid><dc:creator>gauravs0002</dc:creator><description>Thanks Rahul.&lt;br /&gt;
&lt;br /&gt;
I have used the folder constant in the first form to upload the document and same i was using second form also due to which every time it was generating a new id for the document.&lt;br /&gt;
Now i have used the document id (obtained from the first form) as target in the second form and its working fine.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Document Id</title><link>https://community.appian.com/thread/59398?ContentTypeID=1</link><pubDate>Tue, 21 Aug 2018 17:07:28 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:cd6734e8-042b-49d3-91af-51f27d43fba5</guid><dc:creator>Robert Shankin</dc:creator><description>&lt;p&gt;Rahul Gundu (rahulg262) &amp;nbsp;is correct.&lt;/p&gt;
&lt;p&gt;this is documented:&amp;nbsp;&lt;a href="https://docs.appian.com/suite/help/18.2/File_Upload_Component.html" target="_blank"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The complete detail for the target parameter states:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;[Target] Determines the eventual location of the uploaded file. When a Folder, the uploaded file is created as a document in that folder. When a Document, the uploaded file is created as a new version of that document.&lt;/p&gt;
&lt;/blockquote&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Document Id</title><link>https://community.appian.com/thread/59395?ContentTypeID=1</link><pubDate>Tue, 21 Aug 2018 15:34:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c054064a-4846-46cc-9b17-d2cccde5cd74</guid><dc:creator>Rahul Gundu</dc:creator><description>In fileupload field, use &amp;#39;target&amp;#39; property. It will create a new version of the document rather creating a new document.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>