Sunday, October 28, 2018

Examples of validation rule in Salesforce

Examples of validation rule in Salesforce:

Validation rule is used to ensure that the data entered by user is correct by using formula or expression.The main purpose of writing validation rule is to ensure quality of data.
Using validation rule we can display error message so that user can input correct data format.

STEPS TO CREATE VALIDATION RULE:

1)GO TO SETUP.
2)SEARCH VALIDATION RULE IN SEARCH BOX.
3)CHOOSE OBJECT ON WHICH YOU WANT TO CREATE VALIDATION RULE.
4)CLICK VALIDATION RULE ON OBJECT.
5)CLICK NEW.
.Enter rule name and description.
.Enter error condition formula.
.Enter error message.
.Enter error location.

6)CLICK SAVE.


Sample validation rule:

Let's create a validation rule for checking contact first name and
if contact first name is 'test1' display error .

Examples of validation rule in salesforce


Now try creating contact with first name as test1,
You will get the below error.


validation rule in salesforce


**************************************************************************************************************


TAGS:Examples of validation rule in salesforce,validation rule in salesforce,validation rules in salesforce,validation rules.

**************************************************************************************************************





No comments:

Post a Comment