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

ToLabel and picklist fields

Is there a way using the describe attributes of a picklist field to tell whether ToLabel is valid for that field ?


For example, the BusinessProcess object has a picklist field called TableEnumOrId but you cannot use the ToLabel function on that field.


Basically I am building an automated SOQL transformation that applies the ToLabel function to the proper fields in the Select list and I need to be able to determine that from the describe data.