11-01-2017 05:48 AM
Hello Guys, I have Problem in Removing Specific Attachment From Document. When I try to delete attachment with index 3, it will always delete last attachment that is index 0.
I have tried using below code. DocumentService ds = session.getAdapter(DocumentService.class); org.nuxeo.ecm.automation.client.model.DocRef docRef = new org.nuxeo.ecm.automation.client.model.DocRef(DOCID); ds.removeBlob(docRef, “files/content[3]“);
Please any help would be appreciated.
12-04-2017 08:02 AM
Hi,
I think your problem is in xpath of attachment. Please, use xpath with the format files:files/file[a]
, with a=[0..n) n=total of attachments, to delete it.
Regards, VS
12-18-2017 01:22 AM
Ok Thanks for the help.
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.