- Workflow Rules
- Process Builder
- Flow
Workflow Rules and Process Builder will expire in future. So make sure you are using Salesforce Flow.
Each business is unique and may have some tasks which must be done when a certain action took place in your org. For example, when you close a deal, you should generate an email, which congratulate the account etc and it must be done. Since it's required step and require little to no input from user, it's ideal case for automation.
-
Flows can be better described as visual coding—they’re declarative, but they require that you understand some programming concepts like variables and how logic works.
-
Flows are useful for two major use cases.
-
Salesforce Flow are two point-and-click automation tools: Flow Builder, which lets you build flows, and Process Builder, which lets you edit existing processes.
-
Salesforce Flow is the name of the product.
-
Flow Builder and Process Builder are the names of the tools.
-
Use Flow Builder to make flows; use Process Builder to refine existing processes.
When you wanted a process to run when a record changes, you have your pick of solutions.
- Build an autolaunched flow that specifies a record trigger in Flow Builder.
- Build an Apex trigger with Apex code.
If your business process requires input from a user, you can use a:
- Screen flow
- Lightning component
- Salesforce Flow — the product that encompasses building, managing, and running flows and processes.
- Flow Builder — a point-and-click tool for building flows.
- Flow — the part of Salesforce Flow that automates a business process by collecting data and doing something in your Salesforce org or an external system.
- Given a scenario, identify appropiate automation solution based on the capablities of the tool.
- Describe capabilities and use cases for Flow.
- Describe capabilities and use cases for the Approval Process.
- It's a latest and third automation tool for Salesforce.
- It's the most power and have most options.
- It's suppose to replace Workflow Rules and Process Builder.
- You can access it from Setup->Process Automation->Flows.
- A flow interview is a running instance of a flow.
- Flow have 3 building blocks.
- Elements
- Elements perform logical actions e.g; assignment, decisions, or loops.
- There are also data elements that will query the database or commit record changes.
- Connectors
- Arrows which connect all of our different elements and determine which element is going to lead to which.
- Autolayout allow you connect elements together automatically.
- Resources
- Individual variables of data that can be used inside the flow e.g; strings, numbers, records, formulas, collection of numbers of reports.
Process Builder is a point-and-click tool that lets you easily automate if/then business processes and see a graphical representation of your process as you build.
- It's 2nd automation tool in Salesforce.
- It was build after Workflow Rules.
Every process consists of
- A trigger.
- At least one criteria node.
- At least one action.
You can configure immediate actions or schedule actions to be executed at a specific time.
- Actions of Process Builder are
- Create a record
- Update records
- Send email
- Post to Chatter
- Send custom notifications
- Use an action
- Submit for approval
- Launch a flow
- Launch a process
- Call Apex
- Manage Quip documents
- Cross object updates for related records.
There is one thing which workflow can do, but process build can't. Workflow can send outbound messages.
- Key feature of Process Builder are
- You can use it to submit record for approval.
- Highly visual compared to workflow rules.
- Allow controll over the order of action it fires.
- Allows for 50 versions of a process total. Only one can be active a time.
- Processes can be launched from changes on the record, when invoked by another process, or when a platform event occurs.
- Outbound messages are not supported, but you can use the call apex action to achive this.
- Actions are executed in the order in which they appear in the process.
- Easily reorder critera using drag and drop.
- Reuse names when creating a new process version.
- A process can have multiple scheduled actions per criteria node
- Scheduled action cannot be used when using the 'Evaluate Next Criteria' option.
- Admins receive an email alert if a suer who starts a process become inactive and scheduled actions fail.
- https://trailhead.salesforce.com/live/videos/a2r3k000001WFTX/preparing-for-your-admin-certification-automation-workflow-rules-and-approval-processes/?lang=en
- Projec: Build a Discount Approval Process
- Trail: Build Flows with Flow Builder
- Trail: Automate Your Business Processes with Salesforce Flow
- Module: Flow Concepts: Quick Look
- Guide: Automate Your Business Processes