<?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>Web Api to generate a ZIP of some pdfs and make thw download automatically</title><link>https://community.appian.com/discussions/f/integrations/17248/web-api-to-generate-a-zip-of-some-pdfs-and-make-thw-download-automatically</link><description>Hi! 
 How can i make a web Api which its response is a zip of many pdfs. 
 
 Regards, 
 
 Rebeca</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Web Api to generate a ZIP of some pdfs and make thw download automatically</title><link>https://community.appian.com/thread/68024?ContentTypeID=1</link><pubDate>Mon, 08 Jul 2019 14:20:10 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f99d9d9d-3d47-4443-b301-3badb8b7200e</guid><dc:creator>rebecar369</dc:creator><description>&lt;p&gt;Thanks! :)&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Web Api to generate a ZIP of some pdfs and make thw download automatically</title><link>https://community.appian.com/thread/68012?ContentTypeID=1</link><pubDate>Mon, 08 Jul 2019 10:23:09 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1179e193-ed81-42e2-9969-123e67a5eb8c</guid><dc:creator>yogeshc0001</dc:creator><description>&lt;p&gt;Hi Rebeca,&lt;/p&gt;
&lt;p&gt;I think you can achieve this by starting the process on WebAPI (POST Method) call. You can pass PDF information as a parameter to this process and process can get the document IDs of those documents. Then you can use the plugin Add documents to Zip (&lt;a href="/b/appmarket/posts/add-documents-to-zip?CommentId=192c55d7-a7f2-4d17-9a2f-3b4c300ff2c6"&gt;https://community.appian.com/b/appmarket/posts/add-documents-to-zip?CommentId=192c55d7-a7f2-4d17-9a2f-3b4c300ff2c6&lt;/a&gt;) to generate the zip document. All the nodes is this process should be chained so that you can retrieve the Zip document ID in the webAPI and same document can be returned in the response body. Something like below:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;with(
  a!startProcess(
    processModel: cons!APNSB_TESTAPI_PM,
    processParameters: a!fromJson(
      http!request.body
    ),
    onSuccess: a!httpResponse(
      statusCode: 200,
      
      body: todocument(
        fv!processInfo.pv.testDoc
      )
    ),
    onError: a!httpResponse(
      statusCode: 500,
      headers: {
        a!httpHeader(name: &amp;quot;Content-Type&amp;quot;, value: &amp;quot;application/json&amp;quot;)
      },
      body: a!toJson(
        {
          error: &amp;quot;There was an error starting the process&amp;quot;
        }
      )
    )
  )
)&lt;/pre&gt; &amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Yogesh&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Web Api to generate a ZIP of some pdfs and make thw download automatically</title><link>https://community.appian.com/thread/68008?ContentTypeID=1</link><pubDate>Mon, 08 Jul 2019 09:38:06 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:79ec2b34-4663-4677-8088-147b1d28e7e9</guid><dc:creator>rebecar369</dc:creator><description>&lt;p&gt;&lt;span&gt;hi!&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Via a web api in your body&amp;nbsp;we pass the information of the &amp;nbsp;pdfs you want to download in a zip then in Appian you choose the pdfs and they are compressed in a zip, the zip will be the document that returns the webapi ,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;This service is performed from angular (front) , in angular we select the documents (three documents for example), then it&amp;acute;s&amp;nbsp; is called to Appian&amp;rsquo;s web api and zip is created (because the documents/pdfs to be compressed are in a folder document in appian, previously 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: Web Api to generate a ZIP of some pdfs and make thw download automatically</title><link>https://community.appian.com/thread/68006?ContentTypeID=1</link><pubDate>Mon, 08 Jul 2019 09:32:36 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:cb987e77-66aa-4e7c-8301-6bfb71c1cad2</guid><dc:creator>Shanmukha</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Could you please elaborate more about the scenario where you exactly want to implement such functionality? Where do you want to use? Just a small brief so that we can provide different solutions based on the scenario.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>