Workflow / Process Automation (16%) Flashcards
What is and what is included in salesforce flow?
The product that encompasses building, managing, and running flows and processes.
Flow Builder: a point-and-click tool for building flows.
+Flows: The part of salesforce flow that
automates a business process.
Process Builder: Simpler point-and-click tool than Flow builder that automates business processes
+Processes: The part of the salesforce process that automates.
Workflow rules
Sets workflow actions into motion when certain conditions are met, either immediately or on a scheduled time
What are the 3 options to chose from when a workflow should trigger.
When a record is created.
-The workflow will only be triggered once when a record is first created.
When a record is created and every time it’s edited.
-The rule will fire when a record is created and every time the record is updated as long as the record meets the rule criteria
When a record is created, and every time it’s edited to subsequently meet criteria.
- When a new record is created, or if an existing record is changed from not meeting the rule criteria to meeting the criteria, the workflow will fire.
Rule criteria
2 ways to define the logic
Is the logic which determines if the rule should fire
Criteria are met:
Allow selection of fields and filter criteria that are combined with logic operators
Formula evaluates to true:
A formula needs to return a value of “True” or “False”
Tasks
Can be created to complete a certain function and then are assigned to particular users or record owners
Daily limits of emails
1,000 emails can be sent from email alerts per salesforce license per organization.
2,000,000 emails can be sent organization wide.
Email alert recipient can be
A single user or group of users
What happens when the daily allocation limit for email alerts has been reached
Any emails in the workflow queue left over will not be sent and will be discarded the day after. An Error message will show on the debug log.
Outbound messages
Send data from an object to an external system
Immediate actions
Are associated with a workflow and fire immediately when the workflow criteria is met
Time-dependent actions
Allow users to choose when the workflow actions should be executed
Time Triggers
Can be defined using standard or custom date and date/time fields for the objects. The valid range is 0 to 999 days or hours
Approval process
Allows defining a series of steps to automate the process for approving records
Workflow rules and approval processes support the following actions
Email Alerts, Creating Tasks, Field Updates, Outbound Messages
Lightning process builder
Is a process automation feature that is similar to standard workflow but with more powerful functionality and a drag-and-drop visual interface
what should you use for if/then requirements
Process builder or Flow builder if it needs more complex functionality
What’s the main limitation of Process builder compared to workflows?
It cannot sent outbound messages
Why would process builder be used?
To define a series of conditional actions that are invoked when a record is created or updated.
Process builder considerations
Infinite Loops:
Make sure that the processes aren’t
setup to trigger each other resulting in a never ending process.
Implementation:
Process Builder actions are executed in
the order they appear in the process
definition
Chatter Tasks: Process Builder can be used to automate chatter tasks using groups, group memberships, topics, and topic assignments.
Supported Fields:
Process builder only shows supported
options in the field picker
What the process builder actions (11)
Apex, Create a record, Email Alerts, Flows, Post to chatter, Processes, Quick Actions, Quip, Send Custom Notification, Submit for approval, Update Records.
Process Builder: APEX
Ideal for getting complex calculations done or to trigger another code based business process
Process builder: Flows
Ideal for performing operations that includes getting a user input/ deleting records/updating un-related records etc.
Process builder: Processes
What is is and when would you use it over workflow
Point and click tool that allows you to automate your business processes.
You would use it over workflows if you needed to do outside of the 4 things workflows does, needed execution to be in order, or if you just need other fields to be updated outside of what workflow offers.
Process builder: Quick actions
Can be used to invoke quick actions that create a record, update a record, or logs a call. Global or Object Level actions
Process builder: Quip
Can include standard quip actions such as send message in chat or documents, add members to chat or document, etc.
Flow Builder
Is an automation tool used to design and build flows which are capable of collecting and processing data and provides advanced capabilities for meeting complex business requirements.
.
.
Different types of AutoLaunched flows
No Trigger, Record Triggered, Schedule Triggered, Platform Event Triggered
Different types of AutoLaunched flows (4)
No Trigger, Record Triggered, Schedule Triggered, Platform Event Triggered
No Trigger AutoLaunched Flow
This flow needs to explicitly called from a process, or button
Record Triggered AutoLaunched Flow
This flow is triggered when a record is created, updated, or deleted
Schedule Triggered AutoLaunched Flow
This flow can be scheduled to run once, daily, or weekly
Platform Event Triggered AutoLaunched Flow
This flow can be triggered upon receiving a platform event message
Flow actions available in flow builder
Core actions, Apex Actions, and Email Alert
Core action Element
Can be used to perform an action outside of the flow
Apex action
Can be added to call an Apex class if one of the methods is annotated with @InvocableMethod
Email Alert
Can be used to send an email from an available ‘email alert’ action
What are the three out-of-the-box flows available to expedite repetitive processes in agents workflows’
Create a case: Flow walks agents through the case creation process and helps eliminate user errors.
Rest password: Flow walks agents through the customer password reset experience
Verify Identity: Flow helps agents resolve cases of missing credentials
How can you create a flow
setup>flows>new flows
What are the flow building blocks
Elements: Are the individual building blocks of the flow. These preform logical actions such as assignments, decisions, or loops.
Connectors: Determine which elements leads to which
Resources: Are individual variables of data that are to be used in a Flow - these can be strings of text, numbers, records, formulae, or collections
Start Element: Marks the beginning of a flow
Fault Path: Added to elements that can fail
Why is using fault paths beneficial?
Allows the system to display or relay meaningful error messages to end users and help debug issues more efficiently
Interaction: Screen
Only available in a screen flow, allows you to present a screen to the user.
Can display information from the data your flow is working on, or it can be used to collect information from the user
Core actions that can be added to a flow
Activate Session-Based Permission set, Deactivate Session-Based Permission set, Post to chatter, Global or Object-Specific Action , Send Custom Notification , Send Email , Submit for Approval,
Subflow Element
Can be used to launch an existing flow within a flow