Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static List<String> getLeadStatus(){
- List<String> options = new List<String>();
- Schema.DescribeFieldResult fieldResult = lead.status.getDescribe();
- List<Schema.PicklistEntry> ple = fieldResult.getPicklistValues();
- for (Schema.PicklistEntry f: ple) {
- options.add(f.getLabel());
- }
- return options;}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement