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
Edward GeeEdward Gee 

How do you retrieve the default value for checkboxes via Partner API?

I'm hoping I simply overlooked something but I can't seem to determine what the default value of a checkbox is on my custom object using the Partner APIs.  From a describeSObject call, I can see the default value for Text fields (and the like) via Field.getDefaultValueFormula().  For picklists, I can see the default value via Field.getPicklistValues(i).isDefaultValue().  However, for checkboxes, I can't seem to determine whether the default value is "Checked" or "Unchecked".  Am I missing something here?

- Ed
Ron HessRon Hess
Yeah, i also don't see the default in the result of the describe on a boolean field.

Edward GeeEdward Gee
Just an FYI, we logged a bug/enhancement with Salesforce.
Prabodh SPrabodh S
   Even we have similar requirement. Did they come-up with some fix or solution?
Just let me know.

Regards
Prabodh