You need to sign in to do that
Don't have an account?
roni shore
Custom setting value coming null
accountLIst = [querying Accounts here]
Map<String,Validation__c> mcs = R2_Validation__c.getAll();
system.debug('mcs====>'+mcs);
for(Account acc : accountList){
billingCountry = acc.BillingCountry;
Validation__c mc = Validation__c.getValues(BillingCountry);
system.debug('mc====>'+mc);
Getting value on mc null. Please suggest
Map<String,Validation__c> mcs = R2_Validation__c.getAll();
system.debug('mcs====>'+mcs);
for(Account acc : accountList){
billingCountry = acc.BillingCountry;
Validation__c mc = Validation__c.getValues(BillingCountry);
system.debug('mc====>'+mc);
Getting value on mc null. Please suggest
check whether the account BillingCountry is same the customsettings name