You need to sign in to do that
Don't have an account?
Antonio Jesús Criado Manzaneque
How to get the picklistEntries from a field filtered (with another controlling field)
My object Case has two picklist fields:
Thank you all.
- Entidad__c with three possible values: Customer, Reservation and Program.
- Tipo__c with six possible values: Customer A, Customer B, Reservation A, Reservation B, Program A and Program B. This field depends on Entidad__c value.
Schema.DescribeFieldResult fieldResult = Case.Tipo__c.getDescribe(); List<Schema.PicklistEntry> plv = fieldResult.getPicklistValues(); for( Schema.PicklistEntry f : plv){ system.debug(f.getLabel() + ' - ' + f.getValue()); }This code give me all the values, regardless of the value of field type__c. How can I get its values filtered?
Thank you all.