Change document name or path before document created ?

The name (last part of its path) of a newly created Document is created from its dc:title (in nuxeo-document-create.js)

I have to compute title and name of documents from their other fields (type, date and sequence)

Is there a way to change it in an AutomationChain BerofeDocumentCreated ?

Changing the dc:title there won't change the document name, and I don't know how to set Document.name there.

Regards

0 votes

1 answers

92 views

ANSWER



Hello,

Have you tried Document.SetBlobName operation ? https://explorer.nuxeo.com/nuxeo/site/distribution/Nuxeo%20Platform%20LTS%202019-10.10/viewOperation/Document.SetBlobName

It seems to answer your problem.

Seb

0 votes



Hello, Thanks for your response.

I don't wan't to rename the blob attached to the document, but the document itself, so the document URL isn't computed from dc:title, but from some business logic.

11/17/2020