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

picklistsForRecordType values are not correct
I have code that retrieves the choices for a combobox based on RecordTypeId. Specifically, I am looking at the "Task" object, "Subject" field.
This code used to work, but now it returns all picklist values, not just the ones that are valid for the record type I am interested in.
For example, the following line returns 3 objects as expected (0=marketing, 1=standard, 2=master). When the 'Subject' field is examined using the Salesforce front-end, the picklist values are correct (7 choices for master, 5 for marketing, 5 for standard). When viewed in the debugger, all 3 objects contain all 7 choices and all 7 have active = 'true'.
var layoutMetadata = sforce.connection.describeLayout("Task");
Has anyone else had this happen? I could swear that this used to work as expected!
This code used to work, but now it returns all picklist values, not just the ones that are valid for the record type I am interested in.
For example, the following line returns 3 objects as expected (0=marketing, 1=standard, 2=master). When the 'Subject' field is examined using the Salesforce front-end, the picklist values are correct (7 choices for master, 5 for marketing, 5 for standard). When viewed in the debugger, all 3 objects contain all 7 choices and all 7 have active = 'true'.
var layoutMetadata = sforce.connection.describeLayout("Task");
Has anyone else had this happen? I could swear that this used to work as expected!