What is Process Builder in Salesforce?

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

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

What is Process Builder?

Process Builder Salesforce 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 records or by using the records from a related record.
  • Posting on Chatter: Process Builder allows you to post on Chatter for sharing any information to any user.
  • Quick action: If you already have global actions or objects, within Salesforce, you can use Quick action to use them in any record.
  • Launching/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/triggering Apex code: You can invoke an Apex code that you have already written within Salesforce.
  • Invoking another process: This action will actually invoke a process to another process.

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

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

Go through our blog to know about Sharing Rules in Salesforce.

Each of the above processes consists of:

  • Associated criteria that determine when an action group should be executed
  • Action groups that comprise an immediate or scheduled action

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

Watch This Video On Salesforce App Builder Training

Process Builder in Salesforce

Why use Process Builder in Salesforce?

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

  • Easy to use: The visual breakdown provided by Process Builder enables you to know in a glance what exactly you need to expect in every process.
  • Quick development: With Process Builder, applications are developed 3x faster at half of the cost.
  • It 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.
  • Chatter groups and email alerts, both can be notified using Process Builder.
  • Multiple actions can be associated with each criterion.
  • Apex code and simple tasks can be accessed and replaced by Process Builder.

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 Process Builder 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 required for monitoring

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

Get 50% Hike!

Master Most in Demand Skills Now !

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’ll 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’s start!

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

Steps 1 to Create Process BuilderStep 2: You’ll now see the following page. Click on New to create a new Process Builder

Steps 2 to Create Process BuilderStep 3: In this step, you’ll 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 3Step 4: Alright, so what you see in the below image is what I was talking about in the previous step. Now, this is the basic structure of what a Process Builder in Salesforce looks like

step 4Step 5: In the flow diagram, you’ll see Add Object. Click on it and you’ll 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 5Step 6: Now, select Add Criteria. In Criteria Name, enter Stage=Closed Won? And Amount>5M. This is just for the reference purpose so that you know what 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 6Here, you will select the field as Opportunity > Stage (again, you can choose any), and click on Choose

step 6 aNext, you’ll 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 6 bAfter 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 6 c

Career Transition

Step 7: In this step, you will add your action(s) that will be performed when a criterion is met. To do that, click on Immediate Actions. When you see the form on the right-hand side, fill in the following:

  • Action Type: Since you need to create a record whenever a criterion is met, you will select the action type as Create a Record
  • Action Name: Give any name to the action, something like Create Order
  • Record Type: Select the record type as Order
  • Set Field Values: In the first Field, Order Start Date will come by default. In the Type field, you need to select Formula and give the formula as TODAY(), i.e., today’s date. After filling all the details as shown in the image below, click on Save

step 7The image below shows how your flow diagram looks like after updating Immediate Actions. Click on Activate, by doing which your process will be activated

step 7 aYou’re done with building a Process Builder!

Now, you can go ahead and add records and evaluate them however you like it.

Visit our Salesforce Community to get answers to all your queries!

Updating or Editing a Record

Now, how to update or edit a record?

You can update or edit a record by the following steps:

Step 1: Click on the process you created

Updating or Editing a RecordStep 2: Find your object and click on Edit to update or edit any changes

Updating or Editing a Record step 2Step 3: You’ll see the below screen. Here, you can edit anything you want and click on Save. Your record will be edited or updated

Updating or Editing a Record Step 3

I hope you enjoyed building a Process Builder in Salesforce since it has very easy and crisp steps to perform. You can use Process Builder in Salesforce to make your evaluation easier and efficient.

In the next section of this tutorial, you’ll be working on Salesforce Workbench.

Be a certified Salesforce professional by going for Intellipaat’s Salesforce Certification!

Course Schedule

Name Date
Salesforce Certification 2021-12-04 2021-12-05
(Sat-Sun) Weekend batch
View Details
Salesforce Certification 2021-12-11 2021-12-12
(Sat-Sun) Weekend batch
View Details
Salesforce Certification 2021-12-18 2021-12-19
(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 *