Workflow/Process Automation Flashcards
Workflow Rules (Order)
-Before Triggers
-Validation Rules
-Duplicate Rules
-After Triggers
-Assignment Rules
-Auto Response Rules
-Workflow Rules
-Escalation Rules
-Entitlement Rules
-Update Parent Rollup Summary
-Save Records
Barbie’s Vagina Duplicates After Assholes Automatically Windup Eating Everything in the U S
Action Types Workflow Rules
-Field Updates
-Task Creation
-Email Alert
-Outbound Messages
Fast Tigers Eat Oranges
Schedule-Triggered Flow
-Can be configured to start on a specified date/time (once, daily, weekly)
Process Builder
-cannot be used to invoke autolaunched flows in scheduled intervals or timings
-executes whenever records get created or edited
-outbound messages can’t be sent
-controls order of different actions but can’t launch a process depending on another process
Flow (go with it)
-not bound to any one object
-can look up, create, update and delete records for multiple objects
-can provide screens to guide users through your business process (aka the actors – they want center stage, want you to see them work)
-build flows using Flow Builder (point and click tool)
-can automatically submit records for approval
-you cannot move Flows between objects or delete a Flow.
Workflow
-main container for set of workflow instructions and has two components
1. Criteria: what must be true of record for workflow rule to execute associated actions ; always tied to one object
2. Actions: what to do when record meets criteria
-hard workers –> behind the scene (aka the stage hands)
Workflow
-main container for set of workflow instructions and has two components
1. Criteria: what must be true of record for workflow rule to execute associated actions ; always tied to one object
2. Actions: what to do when record meets criteria
-hard workers –> behind the scene (aka the stage hands)
-time-dependent workflow actions cannot be added to an active workflow rule ; needs to be deactivated first
Record triggered flow
-entry condition requirements can be specified either as :
1. combo of field value comparisons (ALL conditions are met, ANY condition is met, custom conditions logic is met) or
2. formula evaluation (ex: formula evaluates to true)
NOT both at the same time
-support scheduled paths that can be configured to be run at a scheduled time (it’s a little path that kicks in if record is (ex:) 10 days old and then can fire off an email because of this)
Governor Limits
Examples:
-total number of SOQL Queries per Transaction
-total number of DML Statements issues per Transaction
Types of Flows
- Screen Flow
- Schedule-Triggered Flow
- Autolaunched Flow (No Trigger)
- Record-Triggered Flow
- Platform Event-Triggered Flow
Debug
-enables you to enter values for input variables and will display debug details
-buttons : run, debug, deactivate, save as, save
-admin can skip starting condition requirements
-“run flow as another user”
-“run flow as if record is” to run flow as if record is created or updated
-can enable rollback
-fault connector - where we want the flow to go if there’s an error
Flow Error Process
-sends email to Admin with link to Flow Builder
-no email sent when:
-flow installed as part of a managed package
-failure occurs after flow interview is paused, then resumed at least once
-error is handled because the element that encounters the error is connected to a fault connector
-failure occurs during apex test method
-flow is a standard flow
-value of flow’s metadata field status is Draft, or InvalidDraft
System Context
-either system context or user context for flows
-can run system :
1. without sharing : ignores all security perms
2. with sharing : enforces record level access on flow
Flow Elements Tab
- Interactions : screen, action, subflow
- Logic : decisions, assignments, loops
- Data : create, update, delete
Interactions Elements
- Screen: allows you to present screen to the user. Displays info from data your Flow is working on, or can be used to collect info from the user
- Action: allows you to pass data through to a pre-existing standard or custom action such as Send Email, a Quick Create, or custom Apex action
- Sub-flow: allows users to call a Flow from within a Flow. Makes maintenance easier as you only need to update your logic once, if implemented effectively