How do I : Update multivalue attribute using DotCMIS

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Active Member

How do I : Update multivalue attribute using DotCMIS

We am writing a utility to update a repeating attribute using DotCMIS. Is there a way to do that using DotCMIS?

Below is the C# code that I use for updating a single value attribute.

IDictionary<string, object> updateProperties = new <string, object>();

updateProperties["customtype:singlevalue"] = 5465456;

3 Replies
Highlighted
Alfresco Employee

Re: How do I : Update multivalue attribute using DotCMIS

Can you ask or move this question to the Content Services forum? The Application Development Framework is about ADF (Angular, javascript, web client). Thanks.

Highlighted
Active Member

Re: How do I : Update multivalue attribute using DotCMIS

Done, Thank you.

Highlighted
Active Member

Re: How do I : Update multivalue attribute using DotCMIS

Its been a while since I posted this. Nevertheless, this might be useful for someone who is looking for solution for similar requirement.

I managed to achieve this by storing multiple values in a list and then updating it.  Please find the code below.

IDictionary<string, object> updateProperties = new Dictionary<string, object>();
IList<string> newValues = new List<string>();

newDocOwners.Add("value");
newDocOwners.Add("value1");

updateProperties.Add("cmisSmiley Tongueroperty", newValues );