hello,
using csom api the console app pushed the file content and user defined key value attributes to a folder in sharepoint online. but one of the property is multi choice and i'm facing challenges to set choices in the console app.
any suggestions would be a great help.
// fci is an object of FileCreationInformation
File flu = fc.Add(fci);
// successfully assigned string value properties
// trying to set multi choice values
// option 1:
flu.Properties["MultiChoiceKey"] = new string[] {'O1', 'O2'}; // not working
// option 2:
FieldMultiChoice mc = (FieldMultiChoice) flu.Properties["MultiChoiceKey"]; // throws an FieldNotInitialized exception
thanks in advance.
lb
thanks in advance.