Advertisement
Guest User

Untitled

a guest
Jul 27th, 2016
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. public static List<String> getLeadStatus(){
  2. List<String> options = new List<String>();
  3. Schema.DescribeFieldResult fieldResult = lead.status.getDescribe();
  4. List<Schema.PicklistEntry> ple = fieldResult.getPicklistValues();
  5. for (Schema.PicklistEntry f: ple) {
  6. options.add(f.getLabel());
  7. }
  8.  
  9. return options;}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement