You need to sign in to do that
Don't have an account?
Basha sk 16
At what time use workflow rule and validation rule?
Hi All,
could anyone please help on this...
At what time use workflow rule and At what time use validation rule,explain with a example?
Thanks in Advance...
Basha
could anyone please help on this...
At what time use workflow rule and At what time use validation rule,explain with a example?
Thanks in Advance...
Basha
https://help.salesforce.com/apex/HTViewHelpDoc?id=fields_validation_considerations.htm&language=th
Workflow Considerations:
https://help.salesforce.com/apex/HTViewHelpDoc?id=workflow_rules_considerations.htm&language=en
Thanks,
Nirdesh
Validation Rule:
if you want to do any validation for the fields, before saving the record (Check the Order of Excution) the gohed and use validation rule.
WorkFlow Rule:
based on Rule Criteria you want do any Field update, Email Notification, task, Outbound Message and time based trigger, so that time gohead use workflow rule.
kinldy keep order of excution in mind before choosing above 2.
1 Load Original Record from DB
2 Load new record field value from request to overwrite old value
3 Execute all before trigger
4 system validtion & custom validation.
5 save record in to DB but not committed
6 Execute all after trigger
7 Excute assignment rule
8 excute auto response rule
9 excute workflow or process builder
10 if Field update from work flow (before and after trigger one more time)
11 excute process
12 excute escalation rule
13 DML commited
14 post Commit action (send email)
Hope this will help you. Make best Ans if you clear with my ans
Thanks
Karthik
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 helps
Am
Please see https://developer.salesforce.com/forums/ForumsMain?id=906F0000000g1zYIAQ