<?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 Chat Field</title><link>https://community.appian.com/discussions/f/rules/40212/documents-chat-field</link><description>Hi Team, 
 I am working with the documentsChatField in Appian. After uploading a document, I want to pass it to the chat field for verification. If the verification is successful, I need to save the document details in the database. 
 Could you please</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: documents Chat Field</title><link>https://community.appian.com/thread/154062?ContentTypeID=1</link><pubDate>Thu, 26 Mar 2026 19:39:12 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:513466d7-90a9-4fa9-aa99-8727d6ad7bd6</guid><dc:creator>leelaraok0002</dc:creator><description>&lt;p&gt;You can follow below architecture for this&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div&gt;[ Interface ]&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;└─ Upload document&lt;/div&gt;
&lt;div&gt;└─ Show documentsChatField&lt;/div&gt;
&lt;div&gt;└─ &amp;ldquo;Verify&amp;rdquo; button&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&amp;darr;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;[ Process Model ]&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;└─ AI Skill / GenAI verification&lt;/div&gt;
&lt;div&gt;└─ Decision (success / failure)&lt;/div&gt;
&lt;div&gt;└─ Save metadata (if successful)&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: documents Chat Field</title><link>https://community.appian.com/thread/153661?ContentTypeID=1</link><pubDate>Thu, 19 Feb 2026 12:47:56 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f6180c6b-95a8-4027-9a59-594fdab9c62c</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;The AI components can not access &amp;#39;un-submitted&amp;#39; files.&amp;nbsp; Files that are freshly uploaded live in a special hidden part of the Appian back-end filesystem and until recently even functions like &amp;quot;document()&amp;quot; would error when trying to use them before the document was &amp;quot;submitted&amp;quot; (though this has been updated in the past ~2 versions).&lt;/p&gt;
&lt;p&gt;To handle your use case though, you&amp;#39;ll need to do one of these:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;If this is in a User Input Task, you&amp;#39;ll need to submit the task and (usually) loop back to the same task again, feeding in the ID of the now-submitted document.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;If it&amp;#39;s in a Site page, you can call&amp;nbsp;&amp;quot;a!submitUploadedFiles()&amp;quot; somewhere in a SaveInto which will promote the newly-uploaded file to the part of the Appian filesystem that the AI tools can access.&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: documents Chat Field</title><link>https://community.appian.com/thread/153660?ContentTypeID=1</link><pubDate>Thu, 19 Feb 2026 12:43:53 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2b260c08-1d51-42af-8acf-6f0d16ca8a05</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/15/pastedimage1771505030901v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: documents Chat Field</title><link>https://community.appian.com/thread/153659?ContentTypeID=1</link><pubDate>Thu, 19 Feb 2026 09:31:25 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e3b8ddf1-465c-494d-966d-cbb0a677171a</guid><dc:creator>Shubham Aware</dc:creator><description>&lt;p&gt;Replace local!docid with toDocument(local!documentId) directly in chat field.&lt;br /&gt;Fix the if() condition - remove todocument() wrapping the boolean&lt;br /&gt;Capture upload via index(fv!files, 1, null())&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: documents Chat Field</title><link>https://community.appian.com/thread/153655?ContentTypeID=1</link><pubDate>Thu, 19 Feb 2026 09:11:54 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ea91c418-1e9e-48a8-8312-1f209051fdf2</guid><dc:creator>rajeshp7374</dc:creator><description>&lt;p&gt;The functionality stops working when I pass the new document ID. Please find the code below.&lt;br /&gt;&lt;br /&gt;a!localVariables(&lt;br /&gt; local!documentId,&lt;br /&gt; local!selectedValue,&lt;br /&gt; local!gridData: a!queryEntity(&lt;br /&gt; entity: cons!DS_SEARCH_DOCUMENT,&lt;br /&gt; query: a!query(&lt;br /&gt; logicalExpression: a!queryLogicalExpression(&lt;br /&gt; operator: &amp;quot;AND&amp;quot;,&lt;br /&gt; filters: {&lt;br /&gt; a!queryFilter(&lt;br /&gt; field: &amp;quot;Id&amp;quot;,&lt;br /&gt; operator: &amp;quot;in&amp;quot;,&lt;br /&gt; value: tointeger(local!selectedValue),&lt;br /&gt; applyWhen: a!isNotNullOrEmpty(local!selectedValue)&lt;br /&gt; )&lt;br /&gt; },&lt;br /&gt; ignoreFiltersWithEmptyValues: true&lt;br /&gt; ),&lt;br /&gt; pagingInfo: a!pagingInfo(startIndex: 1, batchSize: 50)&lt;br /&gt; ),&lt;br /&gt; fetchTotalCount: false&lt;br /&gt; ).data,&lt;br /&gt; local!docid: todocument(index(local!gridData, &amp;quot;documentId&amp;quot;, {})),&lt;br /&gt; a!sectionLayout(&lt;br /&gt; label: &amp;quot;Section&amp;quot;,&lt;br /&gt; contents: {&lt;br /&gt; a!fileUploadField(&lt;br /&gt; label: &amp;quot;File Upload&amp;quot;,&lt;br /&gt; labelPosition: &amp;quot;COLLAPSED&amp;quot;,&lt;br /&gt; fileNames:fv!file.name,&lt;br /&gt; value: local!documentId,&lt;br /&gt; saveInto: {&lt;br /&gt; local!documentId,&lt;br /&gt; a!save(&lt;br /&gt; ri!Document,&lt;br /&gt; &amp;#39;type!{urn:com:appian:types}Document_Upload_CDT&amp;#39;(&lt;br /&gt; documentId: local!documentId,&lt;br /&gt; documentName:local!documentId,&lt;br /&gt; /*attachmentType:fv!file.extension,*/&lt;br /&gt; description: &amp;quot;test&amp;quot;,&lt;br /&gt; isActive: true(),&lt;br /&gt; CreatedBy: 12,&lt;br /&gt; CreatedOn: now()&lt;br /&gt; )&lt;br /&gt; )&lt;br /&gt; },&lt;br /&gt; maxSelections: 1,&lt;br /&gt; target: cons!DOCUMENT_SEARCH_UPLOAD&lt;br /&gt; ),&lt;br /&gt; a!buttonLayout(&lt;br /&gt; primaryButtons: {&lt;br /&gt; a!buttonWidget(&lt;br /&gt; label: &amp;quot;Upload&amp;quot;,&lt;br /&gt; submit: true,&lt;br /&gt; icon: &amp;quot;Upload&amp;quot;,&lt;br /&gt; style: &amp;quot;SOLID&amp;quot;&lt;br /&gt; )&lt;br /&gt; }&lt;br /&gt; ),&lt;br /&gt; a!documentsChatField(&lt;br /&gt; label: &amp;quot;Documents Chat&amp;quot;,&lt;br /&gt; documents:if(todocument(a!isNotNullOrEmpty(local!documentId)),local!docid,{}),&lt;br /&gt; height: &amp;quot;AUTO&amp;quot;&lt;br /&gt; ),&lt;br /&gt; a!gridField(&lt;br /&gt; label: &amp;quot;Read-only Grid&amp;quot;,&lt;br /&gt; labelPosition: &amp;quot;ABOVE&amp;quot;,&lt;br /&gt; data: a!queryEntity(&lt;br /&gt; entity: cons!DS_SEARCH_DOCUMENT,&lt;br /&gt; query: a!query(pagingInfo: fv!pagingInfo),&lt;br /&gt; fetchTotalCount: true&lt;br /&gt; ),&lt;br /&gt; columns: {&lt;br /&gt; a!gridColumn(&lt;br /&gt; label: &amp;quot;Id&amp;quot;,&lt;br /&gt; value: a!defaultValue(fv!row.Id, &amp;quot;&amp;ndash;&amp;quot;),&lt;br /&gt; sortField: &amp;quot;Id&amp;quot;,&lt;br /&gt; align: &amp;quot;END&amp;quot;&lt;br /&gt; ),&lt;br /&gt; /*a!gridColumn(*/&lt;br /&gt; /*label: &amp;quot;Document Id&amp;quot;,*/&lt;br /&gt; /*value: a!defaultValue(fv!row.documentId, &amp;quot;&amp;ndash;&amp;quot;),*/&lt;br /&gt; /*sortField: &amp;quot;documentId&amp;quot;,*/&lt;br /&gt; /*align: &amp;quot;END&amp;quot;*/&lt;br /&gt; /*),*/&lt;br /&gt; a!gridColumn(&lt;br /&gt; label: &amp;quot;Document Name&amp;quot;,&lt;br /&gt; value:document(fv!row.documentId,&amp;quot;name&amp;quot;),&lt;br /&gt; sortField: &amp;quot;documentName&amp;quot;&lt;br /&gt; ),&lt;br /&gt; a!gridColumn(&lt;br /&gt; label: &amp;quot;Attachment Type&amp;quot;,&lt;br /&gt; value: document(fv!row.documentId,&amp;quot;extension&amp;quot;),&lt;br /&gt; sortField: &amp;quot;attachmentType&amp;quot;&lt;br /&gt; ),&lt;br /&gt; a!gridColumn(&lt;br /&gt; label: &amp;quot;Description&amp;quot;,&lt;br /&gt; value: a!defaultValue(fv!row.description, &amp;quot;&amp;ndash;&amp;quot;),&lt;br /&gt; sortField: &amp;quot;description&amp;quot;&lt;br /&gt; ),&lt;br /&gt; a!gridColumn(&lt;br /&gt; label: &amp;quot;Is Active&amp;quot;,&lt;br /&gt; value: if(&lt;br /&gt; isnull(fv!row.isActive),&lt;br /&gt; &amp;quot;&amp;ndash;&amp;quot;,&lt;br /&gt; a!richTextDisplayField(&lt;br /&gt; value: if(&lt;br /&gt; fv!row.isActive,&lt;br /&gt; a!richTextIcon(&lt;br /&gt; icon: &amp;quot;check&amp;quot;,&lt;br /&gt; altText: &amp;quot;Yes&amp;quot;,&lt;br /&gt; color: &amp;quot;#138901&amp;quot;&lt;br /&gt; ),&lt;br /&gt; a!richTextIcon(&lt;br /&gt; icon: &amp;quot;times&amp;quot;,&lt;br /&gt; altText: &amp;quot;No&amp;quot;,&lt;br /&gt; color: &amp;quot;SECONDARY&amp;quot;&lt;br /&gt; )&lt;br /&gt; )&lt;br /&gt; )&lt;br /&gt; ),&lt;br /&gt; sortField: &amp;quot;isActive&amp;quot;,&lt;br /&gt; align: &amp;quot;CENTER&amp;quot;&lt;br /&gt; )&lt;br /&gt; },&lt;br /&gt; selectable: true,&lt;br /&gt; selectionValue: local!selectedValue,&lt;br /&gt; selectionSaveInto: local!selectedValue,&lt;br /&gt; height: &amp;quot;AUTO&amp;quot;,&lt;br /&gt; shadeAlternateRows: true&lt;br /&gt; )&lt;br /&gt; }&lt;br /&gt; ),&lt;br /&gt; &lt;br /&gt;)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: documents Chat Field</title><link>https://community.appian.com/thread/153652?ContentTypeID=1</link><pubDate>Thu, 19 Feb 2026 05:42:52 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:00443155-67e5-4b1d-bcd3-ef9cd6cf67ea</guid><dc:creator>Shubham Aware</dc:creator><description>[quote userid="275274" url="~/discussions/f/rules/40212/documents-chat-field/153640"] I would like to pass this document ID to the &lt;code data-start="583" data-end="603"&gt;documentsChatField&lt;/code&gt; through a local variable in order to initiate a chat session with the uploaded document.[/quote]
&lt;p&gt;Are you facing any issue with this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: documents Chat Field</title><link>https://community.appian.com/thread/153640?ContentTypeID=1</link><pubDate>Wed, 18 Feb 2026 11:21:00 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:120d21e7-d7f2-4c29-9c93-e6fd49324037</guid><dc:creator>rajeshp7374</dc:creator><description>&lt;p&gt;I have successfully implemented file upload using the &lt;code data-start="467" data-end="484"&gt;fileUploadField&lt;/code&gt; component and obtained the document ID after upload. I would like to pass this document ID to the &lt;code data-start="583" data-end="603"&gt;documentsChatField&lt;/code&gt; through a local variable in order to initiate a chat session with the uploaded document.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: documents Chat Field</title><link>https://community.appian.com/thread/153639?ContentTypeID=1</link><pubDate>Wed, 18 Feb 2026 11:10:22 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:051d36f7-07e2-40dc-9ce1-6383ae9b36d5</guid><dc:creator>Shubham Aware</dc:creator><description>&lt;p&gt;Hope you are&amp;nbsp;uploading a document through fileUploadField and passing it to documentsChatField for conversation.&lt;br /&gt;You want to store the document after verification, but how are you concluding the verification of the document?&lt;br /&gt;&lt;br /&gt;But just for information, the documentsChatField does not support saveInto and you cannot extract data from it- it&amp;#39;s just a session-based chat.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>