<?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>Several Document upload</title><link>https://community.appian.com/discussions/f/data/31157/several-document-upload</link><description>I need to store a user id, along side several picture uploads all in a relational database. My solution for storing the pictures would be to save the pictures locally on appian and save the document ids on the database alongside the user id. However,</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Several Document upload</title><link>https://community.appian.com/thread/124331?ContentTypeID=1</link><pubDate>Tue, 16 Jan 2024 11:58:27 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4ca76c5c-f078-418c-87b1-d421ceea1a0e</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;The documentation (&lt;a href="https://docs.appian.com/suite/help/23.4/Web_APIs.html#http-methods"&gt;https://docs.appian.com/suite/help/23.4/Web_APIs.html#http-methods&lt;/a&gt;) says:&lt;/p&gt;
&lt;p&gt;Additionally, web APIs with the POST, PUT, or PATCH method can be used to upload &lt;strong&gt;a document&lt;/strong&gt; to Appian and download a document from Appian a binary request body. The size of this document is limited to 75 MB.&lt;/p&gt;
&lt;p&gt;Document is in singular. But, that could also be a ZIP file containing multiple files.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Several Document upload</title><link>https://community.appian.com/thread/124329?ContentTypeID=1</link><pubDate>Tue, 16 Jan 2024 11:54:46 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:740b1cdd-6837-4356-8eed-d2508914636a</guid><dc:creator>alir5058</dc:creator><description>&lt;p&gt;But the documents do not already exist on the appian server, I need to retrieve them from the from an outside source as images.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Several Document upload</title><link>https://community.appian.com/thread/124328?ContentTypeID=1</link><pubDate>Tue, 16 Jan 2024 11:54:04 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a8bf4844-3ae1-4aba-8996-db8bad7252c6</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;That works for outgoing calls (integrations) only.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Several Document upload</title><link>https://community.appian.com/thread/124327?ContentTypeID=1</link><pubDate>Tue, 16 Jan 2024 11:53:28 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:02f5c22a-8a8e-4bc4-9a3d-869c36a1ab3c</guid><dc:creator>Harshit Bumb (Appyzie)</dc:creator><description>&lt;p&gt;You can construct your request body like this.&amp;nbsp;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;{
  userId: 2,
  documents: todocument({7585,7538})
}&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Several Document upload</title><link>https://community.appian.com/thread/124326?ContentTypeID=1</link><pubDate>Tue, 16 Jan 2024 11:51:42 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9d746432-851a-4dab-bfe1-258741b01326</guid><dc:creator>alir5058</dc:creator><description>&lt;p&gt;Is there no way to pass in the user id in the body and the ability to send several pictures aswell?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Several Document upload</title><link>https://community.appian.com/thread/124325?ContentTypeID=1</link><pubDate>Tue, 16 Jan 2024 11:51:10 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c762d529-f1f1-4502-b87f-8cd2a2c2f67c</guid><dc:creator>Harshit Bumb (Appyzie)</dc:creator><description>&lt;p&gt;For better readability..&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/16/pastedimage1705405864232v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Several Document upload</title><link>https://community.appian.com/thread/124324?ContentTypeID=1</link><pubDate>Tue, 16 Jan 2024 11:50:09 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:535ac24d-f15a-4dec-bf72-1b513dd0f04d</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Seems like you are talking about implementing a web API, correct?&lt;/p&gt;
&lt;p&gt;AFAIK, a web API only accepts a single file. The user ID could be passed as a query parameter or a header.&lt;/p&gt;
&lt;p&gt;&lt;a id="" href="https://docs.appian.com/suite/help/23.4/passing-a-web-api-document-into-a-process-model.html"&gt;https://docs.appian.com/suite/help/23.4/passing-a-web-api-document-into-a-process-model.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Several Document upload</title><link>https://community.appian.com/thread/124323?ContentTypeID=1</link><pubDate>Tue, 16 Jan 2024 11:49:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:83c5533f-631a-4e0b-92b1-417eefb2e86e</guid><dc:creator>alir5058</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(

  /*Check whether the request body contains a document*/
  local!success: not(isnull(http!request.body)),

  if(
    local!success,

    /*If a document was uploaded, return a successful response*/
    a!httpResponse(
      statusCode: 200,
      headers: {},

      /*Print the document id, name, and extension of the uploaded document*/
      body: concat(
        &amp;quot;Upload Successful: &amp;quot;,
        document(http!request.body, &amp;quot;id&amp;quot;),
        &amp;quot; - &amp;quot;,
        document(http!request.body, &amp;quot;name&amp;quot;),
        &amp;quot;.&amp;quot;,
        document(http!request.body, &amp;quot;extension&amp;quot;)
      )
    ),

    /*If no document was uploaded, return an error code*/
    a!httpResponse(
      statusCode: 400,
      headers: {},
      body: &amp;quot;400 Document Not Provided&amp;quot;
    )
  )
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Several Document upload</title><link>https://community.appian.com/thread/124321?ContentTypeID=1</link><pubDate>Tue, 16 Jan 2024 11:48:50 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:03ac2ea6-8b19-4829-8094-fb9168d13164</guid><dc:creator>Harshit Bumb (Appyzie)</dc:creator><description>&lt;p&gt;This doesn&amp;#39;t tell us anything about how you have written the code. Do you mind attaching the code snippet so I can understand better why you cannot do things you said you cannot do?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>