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
Chris DChris D 

Contact Salutation field recordtype potential bug.

The way to extract specific picklist values for a field based on record type would involve the sforce call describeLayout and passing it the name of the salesforce entity you need to get info for. Once you have a DescribeLayoutResult object, you will be able to pull back an array of recordTypeMappings for the specified object. The name method on the RecordTypeMapping object will tell you which record type you are referencing. The picklistsForRecordType method will return an array of PicklistForRecordType objects that has a name method to specify the field and a picklistValues method that returns an array of PicklistEntry objects. This is how you will be able to obtain the specific picklist values for a field in a given record type of an object.

That being said, this does not apear to work for the Salutation field in the Contact entity. Is this a bug or am I overlooking something?
benjasikbenjasik
We'll have to look into this, looks like it's a bug though. Thank you for reporting!