I am using C#.net GraphServiceClient
to manipulate a Sharepoint ListItem. I’m able to access the Field using IDictionary<string, object>
AdditionalData.
Assume my field name is EnvironmentTypes, which is a Sharepoint Choice field that allows multiple selections. When I access this field through AdditionalData it’s returned as Microsoft.Kiota.Abstractions.Serialization.UntypedArray
.
How do I work with this as a List or a string array? I need to update the values in this Field.
The following code:
foreach (var environmentType in server.EnvironmentTypes.GetValue())
Console.WriteLine(KiotaJsonSerializer.SerializeAsString(environmentType));
Gives me a string delimeted by “; ” a semi colon and space.
Surely, there must be a more friendly optimal way to access this value and update it?