Workflow/Process Automation Flashcards
Process Automation
- Simplifies work for End Users
- Typically involves a variety of rules and processes that can be set up to eliminate repetitive and time-consuming processes
- Ex: Workflows, Process Builders
Workflow Rule
- Sets workflow actions into motionvwhen certain conditions are met, either immediately or on a scheduled time, fired by a trigger
- Can be used for automating simple business processes, such as creating tasks, updating a field, sending an e-mail, or sending an Outbound message
- Actions are performed in a certain order when a record is created, updated, or inserted into SF
- 3 evaluation crtieria are when defining when this should be triggered
- Can execute BOTH immediate and time-dependent actions. The latter requires adding a time trigger
- Sets Workflow actions into motion when certain conditions are met, either immediately or on a scheduled time, fired by a trigger
- Supports Outbound Messages to external systems (Process Builder doesn’t)
- Can be triggered from a save button, data import, API, and insert/update DML operations
- Will only be triggered ONCE when a record is first created and every time the record is updated as long as the record meets the rule criteria
- When a new record is created, or if an existing record is changed from not meeting the rule criteria tomeeting the criteria, this will fire
3 Options when Workflow Rules should be evaluated
1.) When a record is Created
2.) When a record is Created, and every time it’s edited
3.) When a record is Created, and any time it’s edited to subsequently meet criteria
4 Times Workflow Rules are evaluated
1.) After Triggers
2.) Validation Rules
3.) Assignment Rules
4.) Auto-Response Rules
Order of Execution
A set of events that are executed in a specific order and are triggered whenever a record is inserted, updated, or upserted
Order of Execution Mnemonic
Validation Rules
Assignment Rules
Auto-Response Rules
Workflow
Escalation Rules
Process Builder
- Very Awesome Admins Want Exciting Projects!
Order of Execution BEFORE and After a Workflow Rule or Process (Builder) is Triggered
1.) Before Triggers
2.) Validation Rules
3.) Duplicate Rules
4.) After Triggers
5.) Assignment Rules
6.) Auto-Response Rules
7.) Workflow Rules/Process
8.) Escalation Rules
9.) Entitlement Rules
10.) Update Parent Roll-up Summary
11.) Save Records
3 Options to select from when defining when a Workflow Rule should Trigger
1.) When a Record is created
2.) When a Record is created, and everytime it’s edited
3.) When a Record is created, and anytime it’s edited to subsequently meet criteria
Rule Criteria
- The logic which determines if the rule should fire
- 2 ways to define this:
1.) Criteria are met
2.) Formula evaluates to True
Formula
- Needs to return a value of “True” or “False”
- If “True,” then the rule is triggered
- This can reference merge fields in related objects
- Advantage of using this is that I can cross-reference related objects
8 Things Workflow Rules can do
1.) Create Tasks
2.) Send E-mails
3.) Update Fields
4.) Outbound Messages
5.) Select Existing Actions
6.) Immediate Actions
7.) Time-Dependent Actions
8.) Time Trigger
Field Updates
- Can be used to update the value of a field in a record
- ALWAYS OCCUR FIRST!!!!!!!!!!!!!!
- The Record Owner can be updated
- New value options are based on the Field type (ex: Checkbox has “True” and “False” options)
- Picklist fields can be updated with a specific value or the value above or below the current one
- A formula can reference merge fields on the same record or related records up to 10 levels away
- Optionally, all Workflow Rules on the same object can be re-evaluated after this
3 Field Update Options
1.) Clear the _____
2.) Set a specific value
3.) Apply a Formula
Outbound Messages
- Sends data from an object to an external system
- Data from specified fields are sent in XML format via an API message
- Sent to a web URL endpoint, containing data of specified fields in a SOAP message
- Requires the receiver to have a web service listener
- Can ONLY be sent using Workflow Rules, NOT Processes (Process Builder)
Time-Dependent Actions
- Allows Users to choose when the Workflow actions should be executed
- It can reference a date field on the record
- It can be set to trigger a number of days or hours before or after a date field or trigger date
Time Triggers
- Can be defined using standard or custom date and date/time fields for the objects
- The valid range is 0 - 999 days or hours
- NOT available if:
1.) Workflow Rule is already active (must deactivate, add this, then activate again)
2.) Pending Actions are in the workflow queue
3.) Rule criteria is set to “Every Time a Record is Created or Edited”