Friday, June 20, 2014

Sometimes you may only want the validation rule to prevent saves for some people

Sometimes you may only want the validation rule to prevent saves for some people. In that case, I like to use a hierarchical custom setting so I can turn off validation rules for the entire org, specific profiles or specific users. In your validation rule formula, you can reference hierarchical settings using $Setup.Setting_Name__c.Field_Name__c.
So, putting it all together, here is what I think a good validation rule should look like:
validation rule example

Source from : http://www.verticalcoder.com/

3 comments:

  1. It’s just incredible how much you can take away from something simply because of how visually beautiful it's!
    You've put with each other a great blog space --great graphics, videos, and layout.
    This is absolutely a must-see weblog!
    Underground lottery online

    ReplyDelete
  2. Learn Salesforce CPQ
    Start your journey to learn Salesforce CPQ with practical examples and live exercises. Understand CPQ configuration, subscription billing, and order management for end-to-end sales solutions.

    ReplyDelete