<?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>Add Documents to ZIP</title><link>https://community.appian.com/discussions/f/plug-ins/24370/add-documents-to-zip</link><description>Can someone explain how to configure the &amp;quot;Add Documents to Zip&amp;quot; node? I just want to add the selected images to zip file. Thank you.</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Add Documents to ZIP</title><link>https://community.appian.com/thread/94063?ContentTypeID=1</link><pubDate>Sun, 24 Apr 2022 05:34:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a67acb83-73bf-499e-b3ea-f9bc91765f44</guid><dc:creator>jeffrey Torres</dc:creator><description>&lt;p&gt;Thank you for your help, &lt;a class="internal-link view-user-profile" href="/members/nareshs945"&gt;Naresh&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a class="internal-link view-user-profile" href="/members/vincenzor0001"&gt;Vincenzo Reggina&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/a&gt;&amp;nbsp;I have already solved the issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Add Documents to ZIP</title><link>https://community.appian.com/thread/94062?ContentTypeID=1</link><pubDate>Sun, 24 Apr 2022 05:24:20 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3bcb142f-639a-4d1b-9525-f5cc8a757ae8</guid><dc:creator>jeffrey Torres</dc:creator><description>&lt;p&gt;thank you for this. I already created a zip file and add the image to the zip but I got a problem when I unzip the file, the file extension of the image is not included. Below is the output when I unzip the file.&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/19/pastedimage1650777860264v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Add Documents to ZIP</title><link>https://community.appian.com/thread/94059?ContentTypeID=1</link><pubDate>Sat, 23 Apr 2022 21:14:49 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:011e94a9-59df-4308-b7d8-281010ad2878</guid><dc:creator>Naresh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You only need to pass exiting document if you are creating a new version of existing document (in case If your requirement never update any existing document don&amp;#39;t pass any value to existing document).&lt;/p&gt;
&lt;p&gt;If your requirement is always creating new zip file every time when you adding new image files&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;basedocument: &amp;lt;empty&amp;gt;&lt;/li&gt;
&lt;li&gt;create new document:&amp;nbsp;true&lt;/li&gt;
&lt;li&gt;&lt;span&gt;New Document Name: &amp;quot;BILLER NAME.zip&amp;quot;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;New Document Desc: &amp;lt;empty&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;save in folder : UPAC P2B QR Image&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Existing document: &amp;lt;empty&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;document to add: a!forEach(pv!subsDetails, fv!item.qrDocId)&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;directory path : &amp;nbsp;a!forEach(pv!subsDetails,&amp;nbsp; concat(&amp;nbsp; &amp;quot;UPAC P2B QR Image\&amp;quot;,&amp;nbsp; document(fv!item.qrDocId, &amp;quot;name&amp;quot;),&amp;nbsp; document(fv!item.qrDocId, &amp;quot;extension&amp;quot;)))&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span&gt;In case if you are creating a new version of an existing file&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;basedocument: &amp;lt;empty&amp;gt;&lt;/li&gt;
&lt;li&gt;create new document:&amp;nbsp;false&lt;/li&gt;
&lt;li&gt;&lt;span&gt;New Document Name: &amp;quot;BILLER NAME.zip&amp;quot;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;New Document Desc: &amp;lt;empty&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;save in folder : UPAC P2B QR Image&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Existing document: &amp;quot;BILLER NAME.zip&amp;quot;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;document to add: a!forEach(pv!subsDetails, fv!item.qrDocId)&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;directory path :&amp;nbsp;&amp;nbsp;a!forEach(pv!subsDetails,&amp;nbsp; concat(&amp;nbsp; &amp;quot;UPAC P2B QR Image\&amp;quot;,&amp;nbsp; document(fv!item.qrDocId, &amp;quot;name&amp;quot;),&amp;nbsp; document(fv!item.qrDocId, &amp;quot;extension&amp;quot;)))&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Add Documents to ZIP</title><link>https://community.appian.com/thread/94058?ContentTypeID=1</link><pubDate>Sat, 23 Apr 2022 15:05:59 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:43deb5ee-9472-4482-88c2-a545e34281c3</guid><dc:creator>jeffrey Torres</dc:creator><description>&lt;p&gt;I&amp;#39;m confused about what value will I input into the&amp;nbsp;&lt;span&gt;&lt;strong&gt;Existing document&lt;/strong&gt;.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Add Documents to ZIP</title><link>https://community.appian.com/thread/94057?ContentTypeID=1</link><pubDate>Sat, 23 Apr 2022 15:04:49 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:cfa3a144-4032-4530-b9cc-ba48c78795f2</guid><dc:creator>jeffrey Torres</dc:creator><description>&lt;p&gt;I got an error in &amp;quot;&lt;a class="dataFieldComplexLabel" id="dataFieldTitleinputTree_76" title="The existing document to create the new version for. Must be provided if creating a new version." target="_self"&gt;&lt;/a&gt;Existing Document&amp;quot; :&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;ExistingDocument must be provided when a new document isn&amp;#39;t be created.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Below are my inputs:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;basedocument: &amp;lt;empty&amp;gt;&lt;/li&gt;
&lt;li&gt;create new document: false&lt;/li&gt;
&lt;li&gt;&lt;span&gt;New Document Name: &amp;quot;BILLER NAME&amp;quot;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;New Document Desc: &amp;lt;empty&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;save in folder : UPAC P2B QR Image&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Existing document:&amp;nbsp;concat( &amp;quot;UPAC P2B QR Image\&amp;quot;, document(1883829, &amp;quot;name&amp;quot;), document(1883829, &amp;quot;extension&amp;quot;)) &lt;strong&gt;(ZIP FILE)&lt;/strong&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;document to add: a!forEach(pv!subsDetails, fv!item.qrDocId)&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;directory path : a!forEach(pv!subsDetails,&amp;nbsp; concat(&amp;nbsp; &amp;quot;UPAC P2B QR Image\&amp;quot;,&amp;nbsp; document(fv!item.qrDocId, &amp;quot;name&amp;quot;),&amp;nbsp; document(fv!item.qrDocId, &amp;quot;extension&amp;quot;)))&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Add Documents to ZIP</title><link>https://community.appian.com/thread/94056?ContentTypeID=1</link><pubDate>Sat, 23 Apr 2022 13:09:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e56dd4f7-310f-4c18-850c-26c81c8f1d7b</guid><dc:creator>Vincenzo Reggina</dc:creator><description>&lt;p&gt;ok, with constant.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;basedocument: &amp;lt;empty&amp;gt;&lt;/li&gt;
&lt;li&gt;create new document: false&lt;/li&gt;
&lt;li&gt;&lt;span&gt;New Document Name: &amp;quot;test.zip&amp;quot;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;New Document Desc: &amp;lt;empty&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;save in folder : select directory where you want to place the zip&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Existing document: &amp;quot;test.zip&amp;quot;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;document to add: select which file you want to add (ex. file.txt)&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;directory path :&amp;nbsp;&amp;quot;intro\file.txt&amp;quot;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;obviously, if in &amp;quot;Get Selected Image&amp;quot; you fetch the document, you have to put in &amp;quot;document to add&amp;quot; parameter.&lt;br /&gt;in that case, assume is pv!myImage.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;basedocument: &amp;lt;empty&amp;gt;&lt;/li&gt;
&lt;li&gt;create new document: false&lt;/li&gt;
&lt;li&gt;&lt;span&gt;New Document Name: &amp;quot;test.zip&amp;quot;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;New Document Desc: &amp;lt;empty&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;save in folder : select directory where you want to place the zip&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Existing document: &amp;quot;test.zip&amp;quot;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;document to add: &lt;em&gt;pv!myImage&lt;/em&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;directory path : concat(&amp;quot;intro\&amp;quot;,document(pv!myImage, &amp;quot;name&amp;quot;),document(pv!myImage, &amp;quot;extension&amp;quot;))&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span&gt;hope this will help you.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Add Documents to ZIP</title><link>https://community.appian.com/thread/94054?ContentTypeID=1</link><pubDate>Sat, 23 Apr 2022 10:57:07 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:cf1ad31d-ec79-47dc-b008-95f2d8770e50</guid><dc:creator>jeffrey Torres</dc:creator><description>&lt;p&gt;can you give me an example?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Add Documents to ZIP</title><link>https://community.appian.com/thread/94053?ContentTypeID=1</link><pubDate>Sat, 23 Apr 2022 10:40:52 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:65529b4a-e219-4c7a-8f1c-049a4f712231</guid><dc:creator>Vincenzo Reggina</dc:creator><description>&lt;p&gt;It&amp;#39;s simple:&lt;br /&gt;&lt;br /&gt;&amp;quot;base document&amp;quot;:&amp;nbsp;&lt;span&gt;The document to base the new document on. All files in the base document will be part of the new document. Any files that match documents being added will be replaced.&lt;br /&gt;&lt;br /&gt;&amp;quot;Create new document&amp;quot;:&amp;nbsp;Wether to create a new document or a new version of a document.&lt;br /&gt;&lt;br /&gt;in &amp;quot;New Document Name&amp;quot; and &amp;quot;New Document Desc&amp;quot; place the name and the description of the file zip created.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;in &amp;quot;Save In Folder&amp;quot; where you place the zip file.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;quot;Existing Document&amp;quot;: The existing document to create the new version for. Must be provided if creating a new version. (of the file existing zip file if you want to replace, &lt;strong&gt;remember: you have to set &amp;quot;Create new document&amp;quot; to false.&lt;/strong&gt;)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;quot;Documents To Add&amp;quot;:&amp;nbsp;The array of documents to add to the ZIP.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;quot;Document Paths&amp;quot;:The array of paths (including file names, the path to use inside the zip created).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Add Documents to ZIP</title><link>https://community.appian.com/thread/94052?ContentTypeID=1</link><pubDate>Sat, 23 Apr 2022 08:21:36 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:21a0f646-7b24-421c-b83f-893fce6f633e</guid><dc:creator>jeffrey Torres</dc:creator><description>&lt;p&gt;&lt;img src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/19/pastedimage1650702028417v1.png" alt=" " /&gt; here is the process model that I&amp;#39;m going to use &lt;span&gt;&amp;nbsp;&amp;quot;Add Documents to Zip&amp;quot;&lt;/span&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>