I have installed OpenKM server and I am using DotCMIS library for documents upload/download, which it works nice(I succeeded in making this work). But I am trying to set custom properties on documents. I have created groups and set properties such as:
I saw an example with Alfresco custom properties, but I can make this with OpenKM and DotCMIS??
Code: Select all
and I receive the error: Property +'okp:contract.cups' is not valid for this type!Dictionary<string, object> properties = new Dictionary<string, object>();
properties[PropertyIds.Name] = documentName;
properties[PropertyIds.ObjectTypeId] = "cmis:document";
properties[PropertyIds.ContentStreamId] = 1;
properties["okp:contract.cups"] = "property_name";
contentStream.Stream = myStream;
IDocument doc = resourceFolder.CreateDocument(properties, contentStream, null);
I saw an example with Alfresco custom properties, but I can make this with OpenKM and DotCMIS??