function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
srikanth j 24srikanth j 24 

Salesforce Workflow and Validation Rule

Hi Guys,
what is exact difference between Workflow and Validation Rule?
Can anyone help me out
Thanks & Regards in Advance
Apoorv Saxena 4Apoorv Saxena 4

Hi Srikanth,

Validation rules verify that the data a user enters in a record meets the standards you specify before the user can save the record. A validation rule can contain a formula or expression that evaluates the data in one or more fields and returns a value of “True” or “False”. Validation rules also include an error message to display to the user when the rule returns a value of “True” due to an invalid value.

Here are some sample use cases for Validation Rules :

https://help.salesforce.com/HTViewHelpDoc?id=fields_useful_field_validation_formulas.htm


Workflows rules in Salesforce are a great way to automate business processes. You can create a rule, and based on some specified criteria that you set, Salesforce can do a number of things, like send an email, create a task, or update a field, send an outbound message.

For more details refer to the following link :  https://developer.salesforce.com/page/Workflow_Rules

So basically Validation rules are used to validate your data before you can save the record, if the data is not valid salesforce throw an error and will not allow you to save the record whereas Workflow rules perform certain actions based on some specified criteria.

Please let me know if this helps.

Thanks,
Apoorv
Aniket Malvankar 10Aniket Malvankar 10
Hello Srikant,

Validation Rules: Improve the quality of your data using validation rules. Validation rules verify that the data a user enters in a record meets the standards you specify before the user can save the record. A validation rule can contain a formula or expression that evaluates the data in one or more fields and returns a value of “True” or “False”. Validation rules also include an error message to display to the user when the rule returns a value of “True” due to an invalid value.

Workflow:Workflow lets you automate standard internal procedures and processes to save time across your org

In order of execution:
First validation rule is executed and after workflow is applied.


Thanks
Aniket