what is a document Id or where can i see the document id

I am using rest api to create or update a document.

i have to provide a prentdocumentId in that .

where can i find that documentid ?

in nuxeo connect or admin center or platform ??

i saw the document title , description etc , but where can i see the ID ?

is it in the db?

0 votes

3 answers

6165 views

ANSWER



If you click the “Permanent link” button (after the title), or the Permanent link sharing option (top right), you'll see the unique id of a given document.

1 votes



Hello,

You don't need to use underlying db to get the id of your document in this case. If you want a more “human readable” way to create a document you can use parent path,or NXQL if you need to access documents using a more specific logic.

1 votes



Example with java automation client:

HttpAutomationClient client = new HttpAutomationClient(

            "http://localhost:8080/nuxeo/site/automation");

Session session = client.getSession("Administrator", "Administrator");

DocumentService ds = new DocumentService(session);

Document doc = ds.createDocument("/path/to/parent", new Document("A title", "File"));

03/16/2014


you can see that in dublincore table !!

0 votes