Page 1 of 1

Rest Api Search by attribute and automate upload process

Posted: Sun Aug 11, 2019 12:37 pm
by Peter P
Dear All, I am new to logicaldoc (using community edition), today only installed I am trying to search all documents in specific folder using folder id and attribute (which is user defined), I had gone to rest api docs but could not find which parameter to use

Here is example


search by folder id and usrid

Code: Select all

http://localhost:8085/services/rest/document/listDocuments?folderId=101&usrid=18788
search by folder id, usrid and year

Code: Select all

http://localhost:8085/services/rest/document/listDocuments?folderId=101&usrid=18788&year=2018

As you can see, above I would like to list all documents in folderId=101, along with documents whose usrid=18788

Also I have directory in which around 600 files are there, I would like to upload them to folderId=101, along with custom attribute, I am not sure whether bulk upload possible or not, I already made csv file which looks like below

Code: Select all

usrid,year,file
18788,2018,doc1.pdf
18788,2019,doc2.pdf

Re: Rest Api Search by attribute and automate upload process

Posted: Fri Aug 16, 2019 8:50 am
by agaspa
Hi Peter,
with the Document API you can only search by folder and filter on filename (on the selected folder), you can't add a filter for user defined attribute.
So the queries you composed will work, but you only get the documents in folder 101 without any filter applied.