cancel
Showing results for 
Search instead for 
Did you mean: 

How do I : Update multivalue attribute using DotCMIS

abhysunny
Champ on-the-rise
Champ on-the-rise

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 3

dvuika
Star Collaborator
Star Collaborator

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

abhysunny
Champ on-the-rise
Champ on-the-rise

Done, Thank you.

abhysunny
Champ on-the-rise
Champ on-the-rise

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 );

Getting started

Explore our Alfresco products with the links below. Use labels to filter content by product module.