You need to sign in to do that
Don't have an account?
Austin_Steve
Is there an order of operations that workflows follow?
If I have multiple workflows on a single object is there a way I can guarantee one will happen before another? For example when the stage changes to Closed Won, I would like a field on the opportunity object to get updated (using a workflow) before the email gets sent out (also using a work flow).
I believe the order will always be in the order in which you created the workflows. The oldest runs first, latest runs last. I've tried this out and it seems to hold true. The same is true when you have many immediate workflow actions.
I don't see this documented explicitly and therefore I would not bet that this will always be the case. However I did see a tutorial from Salesforce showing how to solve this similar scenario by creating an update field action followed by an email action.
To insure order you could create a trigger that uses apex that updates the object and then sends a notification.
The order of saving a record is as follows (per the Help & Training solution "In what order are automation rules and Apex triggers processed?"):