Rest Api Search by attribute and automate upload process

Do you want to create a native client or integrate with third party applications: webservices are the solution.

Moderator: car031

Peter P
Posts: 1
Joined: Sun Aug 11, 2019 9:05 am

Rest Api Search by attribute and automate upload process

Sun Aug 11, 2019 12:37 pm

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
agaspa
Posts: 696
Joined: Tue Apr 20, 2010 8:24 am

Re: Rest Api Search by attribute and automate upload process

Fri Aug 16, 2019 8:50 am

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.

Return to “Web Services”

Who is online

Users browsing this forum: No registered users and 0 guests