Publicado Thu, 24 May 2018 05:44:13 GMT por Hun Sönmez Developer

Hi,

 

This is the URI /DocuWare/Platform/FileCabinets/{fileCabinetId}/Documents/{id}/Fields that i am using to update a certain documents index fields. That works well.

I want to know if it is possible to update more than one document with one request using REST API.

 

thanks

Hun

Publicado Thu, 24 May 2018 10:53:28 GMT por Joe Kaufman Bell Laboratories Inc No longer there

Hun,

I have not seen any REST resource that operates on multiple documents at once, except for operations like clipping which obviously clip one document to another (but that's not really the same thing).

My impression has always been that batch operations are handled by the client, queueing them up and then calling the API request multiple times. When you do a batch operation on the web client, for example, you can see the progress gauge increment as each document is processed. Not sure it would look like that if it were a single API call to do a bunch of documents at once.

Is there an issue with simply creating a loop to process the documents in question? If you use the same ServiceConnection or HTTPServer request object, it should be pretty quick and only use up the license as it works. In a sense, having a single resource and just calling it multiple times is cleaner that having two resources, one for a single document and one for multiples. (Just my opinion...)

 

Thanks,

Joe Kaufman

Publicado Thu, 24 May 2018 11:33:09 GMT por Hun Sönmez Developer

Hi Joe,

thx for reply.

I am using at the moment a loop for updating multiple documents and it works fine.

Just wanted to know instead of making a new request for each document, write everything in a single file and send over to server.

Hun

You must be signed in to post in this forum.