+ Start a Discussion
Basha sk 16Basha sk 16 

In which case use Validation rule and In which case use workflow rule?

Hi All,

   could anyone please help on this....
   In which case use Validation rule and In which case use workflow rule?
   please explain with an example.

Thanks in Advance...
Basha
Best Answer chosen by Basha sk 16
UC InnovationUC Innovation
Basically you would want to use a Validation rule to regulate the quality of data inserted. For example if you have an account in which the name field must start with a capitalized letter, you would write a validation rule to check this and display an error and prevent the record from being saved if Account.Name starts with anything but a capitalized letter. If the input is satisfactory the record will be saved. Workflow rules help automate regular (or non regular) actions. For example if after inserting an account record you would like to send an email to the email on that account you would write a workflow rule to do this for you.

More on Workflow Rules can be found here (https://developer.salesforce.com/page/Workflow_Rules).
More on Validation Rules can be found here (https://help.salesforce.com/HTViewHelpDoc?id=fields_about_field_validation.htm).

Hope this helpsQ

Am