Process Advisors

ey-logo
*Subject to Terms and Condition

What is Process Builder in Salesforce?

Now, since you have learned about Workflow and Apex Trigger, it is time for you to learn about this wonderful tool from Salesforce, Process Builder, which is actually a must-have tool for Salesforce developers.

Here are the topics that you will come across in this section:

Watch This Video On Salesforce App Builder Training:

What is Process Builder Salesforce?

What is Process Builder Salesforce

Salesforce Process Builder is basically an automated tool that allows you to control the order of actions or evaluate the criteria for a record. It has eight actions associated with it:

  • Creating Records: This will allow you to create a new record and add different field values for it.
  • Updating Records: You can update one or more records that are somehow related to the record that started the process. This can be done either by manually entering the records or by using the records from a related record.
  • Posting on Chatter: Process Builder in Salesforce allows you to post on Chatter for sharing any information with any user.
  • Quick Action: If you already have global actions or objects, within Salesforce, then you can use quick action to use them in any record.
  • Launching or Triggering the Flow: It is possible for you to launch the flow from your process to automate different processes.
  • Submitting the Record Automatically for Approval: The record that started your process can be submitted. Any other record cannot be automatically submitted.
  • Calling or Triggering Apex Code: You can invoke an Apex code that you have already written in Salesforce.
  • Invoking Another Process: This action will actually invoke a process to another process.

Process Builder supports three types of processes for automation in Salesforce. These types determine what will trigger the process:

  • A change in a record starts whenever the record is updated or created.
  • An event process starts whenever an event message is received.
  • An invocable process starts whenever another process requests it.

Get 100% Hike!

Master Most in Demand Skills Now !

Each of the above-mentioned processes consist of:

processes consist

  • Components of a Process
  • Trigger in Process Builder
  • Criteria in Process Builder
  • Actions in Process Builder
  • Process Types

Components of a Process

There are three major components of a process. The components include a trigger, minimum one criteria node, and at least one action. These components are described in detail below:

Trigger in Process Builder

With the help of the trigger, you can identify when the process should start running. Basically, the trigger helps in determining which objects and changes the process should pay attention to. The following are the changes that the process can pay attention to:

  • Only at the creation of a record
  • When a record is created or edited

Career Transition

Criteria in Process Builder

Criteria helps in determining whether or not the actions to be executed. When a process receives one trigger, multiple criteria nodes can be added. Each criteria node monitors and controls whether or not the associated actions will be executed by the process. The process skips the associated actions if the record does not meet the criteria and moves on to the next criteria node in the process. On the contrary, if the record meets the criteria, the associated action is executed.

Each criteria allows you to do the following:

  • Set filter conditions.
  • Give a customized formula. For example, in case of validation rules, the formula must arrive at the result of true or false.
  • Always execute the associated actions repeatedly by opting out of the criteria in the process.

Actions in Process Builder

Actions determine what the process should do. When a criteria node evaluates to true, the process executes the associated actions or waits to execute them at a scheduled time.

  • As soon as the criteria evaluates to true, the action is immediately executed.
  • There is a specified time when each scheduled action is executed. For example, eight days before the date of record closure or two days from now. When this specified date arrives, Salesforce ensures that the associated criteria node still evaluates to true. If so, then the scheduled action is executed. Schedule actions can be based on either of the following:
    • The particular or specified date or time field on the record when the process was started.
    • Duration or time for which the process ran.

Process Types

There are different process types that a Process Builder can automate. Some of the important process types are mentioned below:

  • Record Change: A Process Builder starts the process when a record is created or edited.
  • Invocable: The process is started, by Process Builder, when it is called by another process.
  • Platform Event: The process starts when a platform event message is received.

Check out our tutorial on the Architecture of Salesforce!

Why Use Salesforce Process Builder?

Process Builder is used for automating your business processes without writing even a single line of code. It rather uses user-friendly visual representations to make it easier for you to work.

The following are a few key benefits of using Salesforce Process Builder:

  • The visual breakdown provided by Process Builder enables you to know, in a glance, what exactly you need to expect in every process.
  • With Process Builder, applications are developed three times faster and at half of the cost.
  • Process Builder can combine multiple workflows into a single process and can have a chain of criteria, if-then statements.
  • Child records can be updated in Process Builder.
  • Both chatter groups and email alerts can be notified using Process Builder.
  • Multiple actions can be associated with each criterion in Process Builder.
  • Apex code and simple tasks can be accessed and replaced by Process Builder.

Learn end-to-end Salesforce concepts through the Salesforce Course in Hyderabad to take your career to a whole new level!

Process Builder in Salesforce vs Workflow Rules in Salesforce

Issue Process Builder in Salesforce Workflow Rules in Salesforce
Development Time It takes 0.5–2 days Depending on backlog, it takes 1–2 weeks
Testing Process Testing is done with simulated users in a sandbox environment by an administrator Testing is done with simulated users in a sandbox environment by a developer
Workflow Design Since it uses the visual design engine, it is user-friendly It is more difficult to understand and refine workflow rules
Skills Required Business analyst skills with an administrator’s help Requires more advanced developer resources
Deployment It takes one-click provisioning to production It takes a significant level of effort to deploy
Process Monitoring Visual monitoring of the status No visual interface is required for monitoring

Check out the Top Salesforce Interview Questions to learn what is expected from Salesforce professionals!

Steps to Create a Process Builder in Salesforce

Creating a Process Builder is fun and easy. Here, you will learn how to create one in just a few minutes.

For practice, you will be taking a scenario in which you need to create an order record when the opportunity is Closed Won and the amount is US$5 million.

So, let us start!

  • Step 1: When you log in to your Salesforce account, go to Setup and search for Process Builder

Step 1

  • Step 2: You will now see the following page. Click on New to create a new Process Builder

step 2

  • Step 3: In this step, you will need to give your Process Name and Description, and decide on how to start your process. For this, you will get three options as shown in the image below. In this example, you will enter Process Name as Demo and give it a description as Actions of Process Builder. Now, from the drop-down menu, select A Record Changes. After that hit Save. Here, the fun part starts, so hold on!

step 3

  • Step 4: Alright, so what you see in the below image is what was being talked about in the previous step. Now, this is the basic structure of what a Process Builder in Salesforce looks like

step 4

  • Step 5: In the flow diagram, you will see Add Object. Click on it and you will see a form on the right-hand side. Select the object name as Opportunity and the option to start the process as when a record is created or edited (you can choose any according to your preference), and then click on Save

step 5

  • Step 6: Now, select Add Criteria. In Criteria Name, enter Stage=Closed Won? And Amount>5M. This is just for reference purposes so that you know the particular criteria you are checking. Next, choose Criteria for Executing Actions as Conditions are met. So, now, you need to set the conditions. For that, you have to add a field

step 6

  • Step 7: Here, you will select the field as Opportunity > Stage (again, you can choose any), and click on Choose

step 7

  • Step 8: Next, you will need to add an Operator. Here, consider this as Equals. So, if a criterion is equal to the record, the action will occur. In the Type dropbox, choose Picklist, and, in the Value dropbox, select Closed Won

step 8

  • Step 9: After that, you have to add another row and perform similar actions as shown in the image below. Once you are done, click on Save

step 9

Conclusion

Salesforce Process Builder is a powerful tool that can be used to automate business processes. It is an important part of the entire Salesforce automation bundle. In this blog, you have learnt the meaning of Salesforce Process Builder, reasons to use it, steps to create a Process Builder in Salesforce, etc.

Check out our tutorial on Salesforce to learn more!

Course Schedule

Name Date Details
Salesforce Certification 03 Jun 2023(Sat-Sun) Weekend Batch
View Details
Salesforce Certification 10 Jun 2023(Sat-Sun) Weekend Batch
View Details
Salesforce Certification 17 Jun 2023(Sat-Sun) Weekend Batch
View Details

3 thoughts on “Process Builder in Salesforce”

Leave a Reply

Your email address will not be published. Required fields are marked *