I am trying to Creating Custom Settings record on insert using InstallHandler.
global class CVFC_InstallClass implements InstallHandler {
global void onInstall(InstallContext CMLeadSetting) {
if(CMLeadSetting.isPush()){
CMLeadSetting__c cml = new CMLeadSetting__c(Name = 'CMLead Conversion');
insert cml;
}
}
}
In my code, do you see anything I've missed? The custom setting is getting created but no record is being generated. I'm trying to figure out why this is happening.