You need to sign in to do that
Don't have an account?
Alexandra Stehman
Including Custom Settings values in validation errors?
I wanted to enforce a minimum price on an item and am managing it as a custom setting. I have a validation rule checking it, but the text of the validation rule is not properly substituting the text of the custom setting variable reference.
Is this even possible?
Is this even possible?
All Answers
Sorry, I misspoke - the text of the "Error Message" associated with the validation rule appears it cannot reference a custom setting, like
" The minimum monthly fee for that product is $Setup.Price_Limits__c.Min_Fee__c."
The custom setting holds the price minimums for specific products.
I am comparing the sale price of particular OpportunityProducts (line items) to values set in the custom setting - within a validation rule on OpportunityProduct.
I just want to be able to report back to the user, within the error message displayed WHEN these validations fail, WHAT those minimums are (from the values in the custom settings).
The goal is to flexibly set minimums without the need to modify validation rules - only custom settings.