Workflow Rules vs Process Builder

Today, Salesforce is that the world’s leading Customer relationship management solution provider that helps grow businesses efficiently. Salesforce users leverage the core capabilities and enriched functionalities of Salesforce, from sending reminders to follow up with customers to making sales projections and reporting accurately for top-level management.

Fortunately, Salesforce enables to make workflows and program tasks to automate business processes. Workflow rules and program tasks are often created with simple drop-down menus and flow charts. you'll create variety of rule-based on certain criteria you set like sending an email, task creation, or field updation. These fantastic automation features within Salesforce help eliminate manual entry of knowledge and save valuable time and efforts of sales representatives.

In this blog post, we'll discuss the Workflow rules and Process Builder and therefore the steps that are followed to make a Process Builder in Salesforce.

What are Salesforce Workflow Rules?

Workflow rules are the orders created by a Salesforce user to perform automated actions when certain conditions or series of conditions are met. These tasks can happen suddenly or can be scheduled at a particular time based on a trigger.


  Workflow Rule:

Workflow is automated process that fired an action based on Evaluation criteria and rule criteria.

Various actions that are performed by Workflow:

1) Field update
2) Email alert
3) New task
4) Outbound message

Action #1: Field Updation

Displays new data after altering a field when certain conditions are met.

Action #2: Sending email (Email alert)

Salesforce users can generate preset emails by including plain text and HTML. These emails can be automatically sent when certain conditions have taken place in Salesforce. You can use mail merge for displaying the recipient’s first name, company, and other personal information.

Action #3: Assigning Task (New task)

Once predefined conditions have taken place, you can set a new task for a particular user.

Action #4: Sending a message to a different system (Outbound message)

Sending an outgoing XML message to a specific URL outside the Salesforce ecosystem.

Salesforce Workflow has two components for salespeople to get the information about the quantity, type, and results that can be expected based on a certain scenario.

Criteria – These are the “if” part of the procedure that is associated with the rule and must be true in order to perform the action with the linked expression.

Actions – These are “then” part. It consists of actions that take place when conditions are met.

 MIND IT !

• Coding is not required.

• We can access a workflow across the object.

• We cannot perform DML operation on workflow. Only insert and update.

• We cannot query from database.

What is Salesforce Process Builder?

Process builder is an automation that lets you automate the process and see the graphical representation of what have you build.

Following are the actions that you can do using process builder,

1)Create record.
2)Update related record.
3)Send emails.
4)Post to chatter feed.
5)Submit record for approval.

 MIND IT !

Process builder is used when you have multiple if/else conditions that need to be checked which you cannot do in the workflow. Process builder can call your apex code but workflow cannot.

Difference between Workflow Rules and Process Builder in Salesforce

With Process Builder, you perform a lot more actions than Workflow Rules such as :

• Create a record (not just Tasks!),
• Update any related record(Master-Detail – Lookup)
• Using a quick action to create a record, update a record, or log a call (Launch a Quick Action)
• Launch a flow
• Send an email
• Publish to chatter
• Submit for approval
• Call Apex methods

But the process builder does not support outgoing messages.

However, the Workflow can only perform 4 actions:

1) Create Task
2) Update fields (Same Object or Master Object in Master-Detail Relationship)
3) Email notification
4) Outbound Message

Now we will discuss some scenarios.

Scenario 1 – If there is any change into Contact Name then you need to update the Latest Contact custom field of Associated Account with the latest Changes into the account name.

In this scenario, the Process Builder is perfect because when using workflow we cannot update related records other than master-detail.

Scenario 2 – Update Latest Opportunity custom field of Account Object with the opportunity name that was recently closed.

Workflow is the right and innovative automation tool for the scenario described above, because the relationship between Account and Opportunity is Master-Details and using workflow rule we can update the master record and the same record.

Scenario 3 – Update all related cases and Contacts with the same phone of account whenever the account phone changed.

Process Builder is the perfect tool here because we need to update all contacts and cases. There may be more than one, and the Process builder allows you to do the same thing.

Steps to Create Process Builder in Salesforce

Setup–> Build–> Create–> Workflow and approvals–> Process builder


Process Builder


Step 1: Click on New to create a new process builder. A popup box appears where you need to fill name, description, and choose when to start the process from the following options

• A record changes
• A platform event occurs
• It’s invoked by another process


Process Builder

Then, click Save.

Process Builder


Now the screen will show the flowchart of what a Process Builder in Salesforce looks like.


Process Builder


Step 2: To begin the process, click on the Add Object. A screen appears on the right-hand side where you have to select the object name and the option to start the process and then click on save.


Process Builder


In an advanced option below, select yes if you want to enable the process to evaluate a record many times in a single transaction.

Step 3: Now, select criteria to evaluate the process. Click on Add Criteria, enter the name of criteria, and choose one of the below options for executing actions.

• Conditions are met
• Formula evaluates to true
• No criteria—just execute the actions


Process Builder


Step 4: Click on the add row to add multiple conditions.

Set the condition and select the field and select one of the conditions among:

• All of the conditions are met (AND)
• Any of the conditions are met (OR)
• Customize the logic

If required, we can schedule the action by setting a schedule button that has time and date to select. To Stop the flow click on stop. We can add more flows one after another or click on the activate button to assign data in the correct format and check validation rules. Process builder can perform more actions than Workflows in Salesforce.

Conclusion

Process Builder or Visual representation based Workflow Rules allow users to create customized processes and personalized user experiences. Both tools provide a large selection of actions they can perform based on criteria defined by the user. Available actions can be extended by packages installed in the org. This provides another way in which you can use the features for building customized scenarios.

Process Builder has versions, so you can retain deactivated Processes. This can be very helpful if you realize something isn’t working and want to look back to what was happening before.

Lastly, one of the biggest reasons to use Process Builder, might just be because it’s the future.

According to Salesforce:

We’re no longer enhancing Workflow. We still support your use of workflow rules, and will continue to do so. But all new functionality for the workflow use case will come through Process Builder. If you want to use the shiny new functionality, migrate your automation to Process Builder.

Share This Post:

About The Author

Saurabh Samir - I have been helping aspirants to clear different competitive exams. LearnFrenzy as a team gave me an opportunity to do it on a larger level an reach out to more students. Do comment below if you have any questions or feedback's.