Update Custom Object via console add-in
Content
Hello, running this code I get the error "There was an error generating the XML document"... What can be the problem? Many thanks to all
GenericObject customObject = new GenericObject();
customObject.ObjectType = new RNObjectType();
customObject.ObjectType.Namespace = "CO";
customObject.ObjectType.TypeName = "answer_version";
List<GenericField> gfs = new List<GenericField>(); gfs.Add(createGenericField("version_status", ItemsChoiceType.StringValue, "Published")); gfs.Add(createGenericField("to_be_reviewed", ItemsChoiceType.BooleanValue, 0)); customObject.GenericFields = gfs.ToArray();
customObject.ID = new ID();
customObject.ID.id = 4;
customObject.ID.idSpecified = true;
ClientInfoHeader clientInfoHeader = new ClientInfoHeader();
UpdateProcessingOptions options = new UpdateProcessingOptions();
options.SuppressExternalEvents = false;
options.SuppressRules = false;
try {
client.Update(clientInfoHeader, new RNObject