Note
Note
You can reorder criteria nodes—just drag and drop them. However, you can’t change
the order of actions. After you add actions, the only way to reorder them is to delete
them and start over.
If you create processes to replace any workflow rules, make sure you delete or
deactivate those workflow rules when you activate the equivalent processes. Otherwise,
both workflow rules and processes fire and cause unexpected results, such as
overwritten records or redundant email messages.
You can add scheduled actions only if the process starts when a record is created, or if
the process starts when a record is created or edited and you select Yes when asked “Do
you want to execute the actions only when specified changes are made to the record?”
A process can have up to 50 versions, but only one version of a process can be active.
Visual Workflow
Workflow
As far as what the action does, here are the different actions that you can add to a workflow rule. Each
of these actions is available as both immediate and time-dependent actions.
Email Alert—Send an email by referencing an email template. For example, email sales management
when a sales representative qualifies a large deal.
Field Update—Update a field on the record that the workflow rule evaluated or a related record. For
example, when a user record is created, set the Active field to true.
Outbound Message—Send a secure, configurable API message (in XML format) to a designated listener.
For example, send a message to an external HR system to initiate the reimbursement process for an
approved expense report.
Approvals
Workflow rules can update fields on the record itself or it's related parents for an update. Never
children. Process Builder can update children!
Execution
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/
apex_triggers_order_of_execution.htm
If the request came from a standard UI edit page, Salesforce runs system validation to check the
record for:
When the request comes from other sources, such as an Apex application or a SOAP API call,
Salesforce validates only the foreign keys. Prior to executing a trigger, Salesforce verifies that
any custom foreign keys do not refer to the object itself.
Salesforce runs user-defined validation rules if multiline items were created, such as
quote line items and opportunity line items.
The pilot program for flow trigger workflow actions is closed. If you've already enabled
the pilot in your org, you can continue to create and edit flow trigger workflow actions. If
you didn't enable the pilot in your org, use the Flows action in Process Builder instead.
1. The original record is loaded from the database or initialized for insert.
2. The new record field values are loaded and old values are overwritten.
3. System validation rules are executed and required fields are verified.
5. Most system validation steps are run again and validation rules are checked.
10. Before and After triggers are executed again if fields are updated based on workflow
rules. (Up to 13 times.)
12. Rollup summary formula or cross-object formula fields are updated in the parent records and
affected records are saved.
13. Repeat the same process for affected grand parent records.
In Salesforce1 and Lightning Experience, when a create, update, or Log a Call action is
completed, a default success message displays, regardless of whether the action created a feed
item. If you add a custom success message to one of these actions, your custom success message
displays instead of the default message.
In Salesforce Classic, custom success messages have slightly different behavior. If you select Create Feed
Item for a Create a Record or Log a Call action, no success message displays in Salesforce Classic. The
feed item that is created is the confirmation that the action executed successfully.