<?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>Problem with multiattachments grid</title><link>https://community.appian.com/discussions/f/user-interface/13630/problem-with-multiattachments-grid</link><description>Hello friends, 
 I&amp;#39;m struggling with multiattachments grid. My main goal is to present more than one attachment(send by email) in grid. At this moment i can present just one. I don&amp;#39;t know why. Can someone give me small tip how to deal with this task?</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Problem with multiattachments grid</title><link>https://community.appian.com/thread/61922?ContentTypeID=1</link><pubDate>Thu, 25 Oct 2018 10:01:11 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b641ddc7-5bd4-44fa-a8ad-b4a624269e15</guid><dc:creator>dawids0001</dc:creator><description>Fun thing. We are starting new process from external application and start new process via web API and when i put my attachments there, everything is fine like it shows  me in the same grid all of them but when i choose buton send to correction - appian send email to client advisor with message what should he correct. Then he add some attachment and it delete this previous attachments and shows just one :/ Thats so bad :(&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with multiattachments grid</title><link>https://community.appian.com/thread/61886?ContentTypeID=1</link><pubDate>Wed, 24 Oct 2018 13:32:47 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:21097eae-d11b-497c-b244-cb7eab602f8c</guid><dc:creator>dawids0001</dc:creator><description>&lt;p&gt;Thanks for your&amp;nbsp;answer :) After i changed mi document input inside rule!AA_AttachmentGridRow into array it gives me this error now:&lt;br /&gt; &amp;quot;Error Evaluating UI Expression&lt;br /&gt; Expression evaluation error in rule &amp;#39;aa_s_allattachmentsreadonly&amp;#39; (called by rule &amp;#39;aa_f_backofficeemployeetask&amp;#39;) at function a!forEach [line 20]: Error in a!forEach() expression during iteration 1: Expression evaluation error in rule &amp;#39;aa_attachmentsgridrow&amp;#39; at function &amp;#39;document&amp;#39; [line 8]: The passed parameter(s) are of the wrong type. Received the type List of Document.&amp;quot;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with multiattachments grid</title><link>https://community.appian.com/thread/61885?ContentTypeID=1</link><pubDate>Wed, 24 Oct 2018 12:13:29 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:42f0c75b-7bdc-448c-a372-58c538894ded</guid><dc:creator>simples533</dc:creator><description>Hi, &lt;br /&gt;
&lt;br /&gt;
Your code look fine and it worked for me. I would suggest some try and error point if it helps you, &lt;br /&gt;
&lt;br /&gt;
1. Print your local!document in some text or paragraph field and see if all data is coming or not. &lt;br /&gt;
2. if all data is coming in local!document, check what is its return type - datatype. If its single datatype like text or number, split it using semicolon in your foreach like split(local!document,&amp;quot;;&amp;quot;) and in expression dont forget to use trim function like (a!documentDownloadLink(&lt;br /&gt;
document: trim(ri!document),&lt;br /&gt;
label: document(trim(ri!document), &amp;quot;name&amp;quot;))&lt;br /&gt;
3. Check if your rule &amp;quot;AA_AttachmentsGridRow&amp;quot; input variable ri!document is Single Type or not. &lt;br /&gt;
&lt;br /&gt;
Hope this helps you to find your error. &lt;br /&gt;
&lt;br /&gt;
Regards,&lt;br /&gt;
Simple Shah&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>