AnsweredAssumed Answered

Update aspect cm:taggable

Question asked by massimobenini on Oct 8, 2015
Hi, i'm new with Alfresco.
I'm developing a c# software to write some documents into an Alfresco repository.

I'm using dotCMIS library to create documents.

I'm able to set some aspect properties like cm:title, cm:description, cm:author with a code like this:

        private static ExtensionsData CreateData(string description)
        {
            ExtensionsData data = new ExtensionsData();
            data.Extensions = new List<ICmisExtensionElement>();
            CmisExtensionElement element = new CmisExtensionElement
                {
                    Name = "alf:setAspects",
                    Namespace = "http://www.alfresco.org",
                    Children = new List<ICmisExtensionElement>
                    {
                        new CmisExtensionElement
                            {
                                Name = "alf:properties",
                                Namespace = "http://www.alfresco.org",
                                Children = new List<ICmisExtensionElement>
                                    {
                                        new CmisExtensionElement
                                            {
                                                Name = "cmis:propertyString",
                                                Namespace = "http://docs.oasis-open.org/ns/cmis/core/200908/",
                                                Attributes = new Dictionary<string, string>
                                                        {
                                                            {"propertyDefinitionId","cm:description"},
                                                            {"displayName","Description"},
                                                            {"queryName","cm:description"}
                                                        },
                                                Children = new List<ICmisExtensionElement>
                                                        {
                                                            new CmisExtensionElement
                                                                {
                                                                    Name = "cmis:value",
                                                                    Namespace = "http://docs.oasis-open.org/ns/cmis/core/200908/",
                                                                    Value = description
                                                                }
                                                        }
                                            }
                                    }
                            }
                    }
                };
            data.Extensions.Add(element);

            return data;
        }




But I don't reach to write into the document some TAGS…
I'm able to set the propetrie c:taggable, but not to set his value (tags are atring array).

IS IT POSSIBLE TO CREATE A DOCUMENT IN ALFRESCO WITH SOME TAGS?

Thank you

Regards.

Outcomes