whats the frequency of the letter a in:
q: get the active and inactive values from the picklist im trying to get the active and inactive values, especially the inactive ones, from a picklist to activate them via code. the problem is that i can only get the active values.
list<string> picklistvaluesactive   = new list<string>();
list<string> picklistvaluesinactive = new list<string>();

schema.describefieldresult fieldresult = objectapiname.picklistapiname.getdescribe();
list<schema.picklistentry> ple = fieldresult.getpicklistvalues();

for(schema.picklistentry picklistval : ple) {
   if(picklistval.isactive()) {
       picklistvaluesactive.add(picklistval.getlabel());
   } else {
       picklistvaluesinactive.add(picklistval.getlabel());
   }
}

i thought about using a trigger after inserting values to make a treatment, but from what i researched it wont work because these picklist values are metadata.
please, does anyone know if is there any way i can get the inactive values from a picklist and activate them via code?

user
The text includes seventy "a"s in total.
assistant