2

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.?

1
  • Hi Baskaran, you marked an answer as accepted but it doesn't seem to answer the question. Did it really resolve your issue?
    – Matt Lacey
    Apr 18 '14 at 2:29
0

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

2
  • 2
    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. Apr 17 '14 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.
    – Matt Lacey
    Apr 18 '14 at 2:29
4

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)

1
  • This is the best answer. Apr 17 '14 at 16:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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