Trigger for contact Delete

 @AuraEnabled

    public static List<String> pickList2(String obj, String str) {

        List<String> regList2 = new List<String>();

        Schema.DescribeFieldResult plistvalues = Schema.getGlobalDescribe().get(obj).getDescribe().fields.getMap().get(str).getDescribe();

        for(PicklistEntry ent:plistvalues.getpicklistvalues())  {

            regList2.add(ent.getLabel());

        }

        return regList2;

Comments

Popular posts from this blog