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
ITENG.SUMANITENG.SUMAN 

workflow evaluation rule

What is the difference between second and third evaluation criteria in workflow rules?
Swayam@SalesforceGuySwayam@SalesforceGuy
Hi,

Option 2: Created, and every time it's edited
This option seems self-explanatory but can be a little confusing. Under this option a record would be evaluated when first created and every time the record is edited. The confusion often occurs with the "every time it's edited" part. This means the workflow rule will fire every time the record is edited even though the record may have already met the workflow criteria when first created or in a previous edit. 

For example, your Sales Director wants to be notified of Opportunities whose value is > $50,000. If the Opportunity has an initial value of $60,000 when created, the rule would fire and because the workflow criteria is met, an alert is sent to the Director. Now, if in a week, the Status of the Opportunity is changed from "Prospecting" to "Proposal Sent", because the record changed, the rule is re-evaluated, and because the value is still $60,000 the rule criteria is met and another alert is sent to the Director. Obviously we don't want to keep sending alerts to the Director since he has already been notified, so this wouldn't be a good choice.

A better use case for this evaluation would be if the Sales Director wants to know if the Opportunity value has changed. This way, if a workflow rule is setup to test if the Opportunity value has changed, the evaluation rule would run the workflow rule every time the record changes. But the rule would only send out an alert to the Director when the workflow rule evaluates "True" i.e. the opportunity value has changed. 

Option 3: Created, and any time it's edited to subsequently meet criteria
This final option means that when a new record is created, or if an existing record is changed from not meeting the rule criteria to meeting the criteria, the workflow rule with fire. 

So let's borrow our example from option #2 where the Director wants to be notified when an Opportunity value is > $50,000. Using this criteria, the rule would fire when the Opportunity is created with a value $60,000 and the Director would get an email notifying him of this Opportunity. Now if the record is changed from a value of $60,000 to $75,000 the rule does not fire again because it has already met the criteria at its initial creation. Now if the reverse happened, and the value went from $60,000 to $40,000 nothing would happen since the record doesn't meet the criteria for the rule. But, if in another subsequent change, the value increased to $55,000 the criteria would again be met, and since the record didn't previously meet the criteria during the last change, the rule would again fire and the Director would receive a new alert.

In summary, for field updates option 2 is most often used, because you're typically making sure some value is populated and you want to check every time the record is edited. Nearly every other situation most often uses option 3.


Hope this helps !!

--
Thanks,
Swayam