Guest User

Untitled

a guest
Jan 18th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. global class TXP_Emailservice implements Messaging.InboundEmailHandler {
  2. global String val {get;set;}
  3.  
  4. @AuraEnabled
  5. global Static List<String> getpklName(){
  6. List<Schema.SObjectType> gd = Schema.getGlobalDescribe().Values();
  7. List<SelectOption> options = new List<SelectOption>();
  8. List<String> myStr = new List<String>();
  9. for(Schema.SObjectType f : gd)
  10. {
  11. options.add(new SelectOption(f.getDescribe().getLabel(),f.getDescribe().getLabel()));
  12. }
  13.  
  14. for(SelectOption so: options)
  15. {
  16. myStr.add(so.getValue());
  17. }
  18.  
  19. return myStr;
  20. }
  21. }
Add Comment
Please, Sign In to add comment