07-23-2014 08:02 AM
The documentation suggests using uid:uid attribute to store custom doc ids.
I wonder why it is not possible to provide the main ID attribute value on document creation?
Let's say I have an document created in an external system and that needs to be synchronized with its' projection in nuxeo.
07-25-2014 10:46 AM
The only way to have a Nuxeo document whose main id (uuid) is user-defined is to use the CoreSession.importDocuments API.
Note that for some Nuxeo configuration (see Id Column Type in the VCS Configuration doc), the id needs to be an integer and database-generated to ensure unicity.
07-25-2014 10:46 AM
The only way to have a Nuxeo document whose main id (uuid) is user-defined is to use the CoreSession.importDocuments API.
Note that for some Nuxeo configuration (see Id Column Type in the VCS Configuration doc), the id needs to be an integer and database-generated to ensure unicity.
07-29-2014 06:45 AM
thank you!
07-30-2014 10:07 AM
I try this function before and after creating document but it doesn't work.
07-31-2014 09:18 AM
It doesn't seem to work for me either, I'm testing on Nuxeo 5.8 (added the version in the question title).
08-01-2014 09:45 AM
@Florent is it up-to-date for nuxeo 5.8? A code sample of calling importDocuments() API? I could not find an example to set Id.
08-05-2014 12:19 PM
You must create a DocumentModelImpl with the proper id. You have to use the constructor with many args for that. Note that CoreSession.createDocumentModel has a 3-arg signature where the second arg is named "id" but it's a mislabeling, it's actually the "name" here ([NXP-14913](https
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.