I have a hierarchical custom setting called Test_Custom_Setting__c and I have field in there called Time_Delay__c set to the default value of 5 and also the Organizational defaults for this field is set to the value of 5 as well. The previous value for this field was 15.
Now I have used this custom setting field in a case formula field like below -
Date__c + (60-$Setup.Test_Custom_Setting__c .Time_Delay__c )/1440
And also tried checking the value for the custom field through apex-
Test_Custom_Setting__c tc = Test_Custom_Setting__c .getInstance();
Decimal def = tc.Time_Delay__c ;
System.debug(def);
Why is the formula field and the apex code taking the old value of the custom setting which is 15 and not the new value in both the scenarios mentioned above?
Please advise.
The previous value for this field was 15.
can you show or describe how/when this took place related to when the formula or apex reads occurred?