Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- global class TXP_Emailservice implements Messaging.InboundEmailHandler {
- global String val {get;set;}
- @AuraEnabled
- global Static List<String> getpklName(){
- List<Schema.SObjectType> gd = Schema.getGlobalDescribe().Values();
- List<SelectOption> options = new List<SelectOption>();
- List<String> myStr = new List<String>();
- for(Schema.SObjectType f : gd)
- {
- options.add(new SelectOption(f.getDescribe().getLabel(),f.getDescribe().getLabel()));
- }
- for(SelectOption so: options)
- {
- myStr.add(so.getValue());
- }
- return myStr;
- }
- }
Add Comment
Please, Sign In to add comment