<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: API: Multiple document input on automation call in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/api-multiple-document-input-on-automation-call/m-p/325937#M12938</link>
    <description>&lt;P&gt;https&lt;/P&gt;</description>
    <pubDate>Tue, 08 Nov 2016 13:07:12 GMT</pubDate>
    <dc:creator>pibou_Bouvret</dc:creator>
    <dc:date>2016-11-08T13:07:12Z</dc:date>
    <item>
      <title>API: Multiple document input on automation call</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/api-multiple-document-input-on-automation-call/m-p/325935#M12936</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I'm struggeling with the documentation explanation.
I'd like to call the automation chain with the rest api, with multiple documents on input.
I have no problem with one document; the body request look like that:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class="language-JSON"&gt;{
	"input": "my-document-1-id"
}
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;But when I want to add another document on the same input, It throw back a &lt;EM&gt;"org.nuxeo.ecm.core.model.NoSuchDocumentException"&lt;/EM&gt;.
I believe the request body should be like this, but i don't know where my mistake is:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class="language-JSON"&gt;{
	"input": "my-document-1-id, my-document-2-id"
}
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 08 Nov 2016 10:55:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/api-multiple-document-input-on-automation-call/m-p/325935#M12936</guid>
      <dc:creator>Ponicorn_</dc:creator>
      <dc:date>2016-11-08T10:55:23Z</dc:date>
    </item>
    <item>
      <title>Re: API: Multiple document input on automation call</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/api-multiple-document-input-on-automation-call/m-p/325936#M12937</link>
      <description>&lt;P&gt;I finnaly found an answer by looking at the source of the javascript client.
If your input is a list of documents, you have to put &lt;EM&gt;docs:&lt;/EM&gt; in front of the string, like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class="language-json"&gt;{
    "input": "docs:my-document-1-id, my-document-2-id"
}
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This is not in the documentation for the moment.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2016 11:09:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/api-multiple-document-input-on-automation-call/m-p/325936#M12937</guid>
      <dc:creator>Ponicorn_</dc:creator>
      <dc:date>2016-11-08T11:09:42Z</dc:date>
    </item>
    <item>
      <title>Re: API: Multiple document input on automation call</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/api-multiple-document-input-on-automation-call/m-p/325937#M12938</link>
      <description>&lt;P&gt;https&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2016 13:07:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/api-multiple-document-input-on-automation-call/m-p/325937#M12938</guid>
      <dc:creator>pibou_Bouvret</dc:creator>
      <dc:date>2016-11-08T13:07:12Z</dc:date>
    </item>
  </channel>
</rss>

