08-13-2020 09:55 AM
Hello guys,
How can I update properties of several documents at once, for example using:
UPDATE cm: indexControl SET cm: isIndexed = true, cm: isContentIndexed = true WHERE cm: isIndexed = false AND cm: isContentIndexed = false AND cmis: objectTypeId = 'D: sij: documento'
sij:documento is a custom type on my data model.
08-13-2020 09:56 AM
You probably need to raise this question in the Content Services forum.
08-13-2020 12:07 PM
You can try to query all the objects that you are trying to change properties by queryObjects method of org.apache.chemistry.opencmis.client.api.Session an then call bulkUpdateProperties method of org.apache.chemistry.opencmis.client.api.Session
08-13-2020 12:29 PM
CMIS is a standard that provides a subset of SQL-92 for discovering objects, but not for modifying them.
http://docs.oasis-open.org/cmis/CMIS/v1.1/os/CMIS-v1.1-os.html#x1-10500014
You need to use other approach like suggested above to update your Repository Nodes.
08-13-2020 01:58 PM
solved with this tip from Apache Chemitry Samples: https://chemistry.apache.org/docs/cmis-samples/samples/update-objects/index.html
Many thanks for all.
08-14-2020 04:55 AM
Hi @ArlindoViana,
Glad you got a solution & thanks for the reference - really helpful to other users.
Best wishes,
Explore our Alfresco products with the links below. Use labels to filter content by product module.