Topic by Ronald Hileman
Content
I can set the email notification to one of the three values (Short, Detailed Once, Detailed Always) with the following code
// // this code will set the value
// // id = 3 is notify always
account.EmailNotification = new NamedID { ID = new ID { id = 1, idSpecified = true } };
But I would like to set this to "No Value". Using the above code, the id must be 1, 2, or 3.
I tried the following code to set the EmailNotification to null, but it does not seem to be doing anything (it does run, but the value is not "No Value")
AccountNullFields acctNullFields = new AccountNullFields();
acctNullFields.EmailNotification = true;
account.ValidNullFields = acctNullFields;
I guess I am missing something (probably something obvious), but any ideas ? I can update attributes, email address, staff group, and other fields, just not the email notification to "No Value". I can update email notification to 1, 2, or 3 without issue.
Thanks.