function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
hguhgu 

Custom Boolean type not updated

We are trying to add a new contact with some custom boolean types, and my code is like:

contact.Primary__c = true;

contact.Active__c = true;

Active__c is a custom checkbox. All other fields (firstname, lastname) are working fine, somehow the custom boolean fields are not updated correctly. Any one has ideas what the problem is?

Thanks

SuperfellSuperfell
in .NET all non nillable types (boolean, int, double, dateTime) have an additional flag XXXXSpecified that kind-of represents if the value is set or on. You need to set this flag to true, to have it send up your value.

contact.Active__c = true;
contact.Active__cSpecified = true;
SuperfellSuperfell
BTW, i think this is a PIA, last i heard it would be no better in .NET 2.0.
hguhgu
Worked like a charm.

Thank you. Will Java version have the same problem?
SuperfellSuperfell
Axis at least, doesn't have this issue, don't know about the other java tools.