Take the 2-minute tour ×
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It's 100% free, no registration required.

Currently i am creating custom settings to store some configuration values. But, i wrongly entered some data in that and the data is invalid. Is there any mechanism like validation rule kind of thing available for this, so that the data entered into it is validated before it saves to database.?

share|improve this question
    
Hi Baskaran, you marked an answer as accepted but it doesn't seem to answer the question. Did it really resolve your issue? –  LaceySnr Apr 18 at 2:29

2 Answers 2

up vote 0 down vote accepted

List type of custom settings are not available in validation rules where as Hierarchy type of custom settings are available in validation rules.

Please find the documentation and link

share|improve this answer
1  
This doesn't really answer the question, does it? The author was asking whether you can validate custom setting data, not whether you can use custom settings in validation rules. –  James Loghry Apr 17 at 16:17
    
This has been marked as accepted but I think perhaps the asker believes that you mean validation rules can be applied to hierarchy settings, which is not the case. –  LaceySnr Apr 18 at 2:29

There is no way , you can create a validation rule on the Custom settings.To ensure the data entered is correct in your production Org, You need to migrate the custom setting values using Data loader.

If you really want to build a validation rule then the only workaround is to use a custom object but that means the advantages of the Custom Setting is lost (e.g. SOQL call burning)

share|improve this answer
    
This is the best answer. –  James Loghry Apr 17 at 16:18

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.