<?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>When we use the a!fileUploadField, we&amp;#39;re saving the document Id to a CDT var</title><link>https://community.appian.com/discussions/f/user-interface/5508/when-we-use-the-a-fileuploadfield-we-re-saving-the-document-id-to-a-cdt-var</link><description>When we use the a!fileUploadField, we&amp;#39;re saving the document Id to a CDT variable. The document is uploaded, but the document ID generated on the file upload does not match the document ID in the knowledge center (off by 1), so we&amp;#39;re unable to use the</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: When we use the a!fileUploadField, we're saving the document Id to a CDT var</title><link>https://community.appian.com/thread/20815?ContentTypeID=1</link><pubDate>Wed, 29 Jul 2015 21:59:52 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4ca82225-eae7-4da4-b8b7-9508c12b0447</guid><dc:creator>marco.molteni</dc:creator><description>Hi Nick,&lt;br /&gt;some more details to the correct answer of Akshaya: as explained in the documentation  (scroll to the notes : &lt;a href="https://forum.appian.com/suite/help/7.10/SAIL_Components.html#FileUpload)"&gt;forum.appian.com/.../SAIL_Components.html&lt;/a&gt; the Document object is updated with the final ID after the form is submitted but integer values that contain the ID are not updated even if they are in a CDT. From the upload form pass the Document variable to the process and not the id, you can add a Script Task with an output node that writes the Document variable in the field (Integer) of your CDT to store the final ID. This works with arrays of documents too.&lt;br /&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: When we use the a!fileUploadField, we're saving the document Id to a CDT var</title><link>https://community.appian.com/thread/20814?ContentTypeID=1</link><pubDate>Wed, 29 Jul 2015 21:43:28 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d25ac53f-fc36-494d-8846-26183b21ac14</guid><dc:creator>akshayan</dc:creator><description>As soon as you upload a document, it&amp;#39;s assigned a temporary id (and the document itself is kept in  temporary documents folder). Once you submit the form, document is moved to target folder and a permanent id is assigned. Use the document id that is generated once you submit the form.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: When we use the a!fileUploadField, we're saving the document Id to a CDT var</title><link>https://community.appian.com/thread/20813?ContentTypeID=1</link><pubDate>Wed, 29 Jul 2015 20:54:08 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:af331651-e2f3-4962-8997-7ae0c0f7b9a3</guid><dc:creator>akshayan</dc:creator><description>You can not use the temporary document id  generated before the form is submitted.  You can search an find many forum posts related to this.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>