Wednesday, July 13, 2016

Developer: Salesforce Order of Execution of things...

Every once in a while you run into a issue which does not make sense.

I created a simple WF rule which would not fire at all. After careful evaluation, I realized that the one of the fields that I was checking for was being set thru an Approval process. Prior to this, 3 other fields on the same object were being updated, the After Update trigger on the concerned object would fire but the workflow would not.

I did the usual checks on moving the rule to execute on "Created and Edited" and found that my conditions were good.

On checking the Approval Process, I found that the Re-Evalute WF rules on update was unchecked.
On checking this flag, everytime the field was updated thru the Workflow Process was getting evaluated and executed.


No comments:

Post a Comment