• Retrieving DocumentName from OpenKM

  • We tried to make OpenKM as intuitive as possible, but an advice is always welcome.
We tried to make OpenKM as intuitive as possible, but an advice is always welcome.
Forum rules: Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
 #44550  by PSHREYASHOLLA
 
Hi,

We are using SDK 1.1,
Code: Select all
OKMWebservices ws= OKMWebservicesFactory.newInstance(host, user, password);
ws.createDocumentSimple(docPath, stream);
to upload the document to OpenKM.

Now using document UUID , which API can we call to get the uploaded DocumentName.

Thanks And Regards,
Shreyas Holla P.
 #44577  by jllort
 
For all the document attibutes must use getProperties method ( https://docs.openkm.com/kcenter/view/ok ... Properties ) it will be returned a Document object. With document object to can get name with path with something like:
Code: Select all
String name = PathUtils.getName(doc.getPath);

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.