You need to sign in to do that
Don't have an account?

Returning Valid Picklist Values
I'm developing an S-control where one of the fields is a picklist value. Ideally, I wouldn't need to hard-code the values in. Going through the Sforce Explorer, I can navigate under the field name down to "type - picklist" and then "Picklist Values", but I can't figure out how to structure my SOQL query to gain access to this data. Can anyone advise if it's even possible, or will I need to resort to hard-coding it in?
You need to use a describe call to get the picklist values. Don't hard code the values becuase
you'll cause issues down the road when you update those values in the UI but not in the sControl.
Code:
I use this code all the time and it should help out tremendously.
-greg

Thanks Greg. That worked flawlessly.