Hello,
I've created custom model with PortCmis and C#, with some custom aspects. Now I want to add some more custom aspects to that model. I've tried something like this:
var modelObject = session.GetObject("here-is-custom-model-id");
var aspectsTemp = modelObject.GetPropertyValue("cmis:secondaryObjectTypeIds");
IList aspects = (IList)aspectsTemp;
aspects.Add("P:goran:fourthAspect");
IDictionary<string, object> props = new Dictionary<string, object>();
props["cmis:secondaryObjectTypeIds"] = aspects;
modelObject.UpdateProperties(props, true);
But I'm getting this error: "Invalid secondary type id P:goran:fourthAspect".
Is there any solution how to add new custom aspect to previously created custom model?
Thanks.