We'd love to hear from you! Provide  feedback  to earn a badge today. Take our quick survey
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Update Custom Object via console add-in

Accepted answer
edited May 6, 2015 4:42PM in UI Extensibility 3 comments


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

Howdy, Stranger!

Log In

To view full details, sign in.


Don't have an account? Click here to get started!