Custom Metadata Types checkbox field always returns false when queried.
Last updated 2020-10-08 ·Reference W-2839172 ·Reported By 39 users
Custom Metadata Types of the Checkbox Field Type with API names >= 30 characters (including __c) will return false when queried via the API.
1.Create a Checkbox for a Custom Metadata
2.Set the API name to something >=30 characters (including the __c, so in the setup it'll be >= 27 characters) e.g. AAAAAAAAAAAAAAAAAAAAAAAAAAA
3.Set the default value to false
4.Query the Checkbox via workbench
4.1.Value will be false
5.Change the value to True
5.1.Query via workbench
5.2 Value will still be false
The workaround available is to create Custom Metadata Types Checkbox Fields with Api Names less or equals than 29 characters long.
Reported By (39)
Is it Fixed?
Any unreleased services, features, statuses, or dates referenced in this or other public statements are not currently available and may not be delivered on time or at all. Customers who purchase our services should make their purchase decisions based upon features that are currently available.