Workflow Rules in Salesforce

Workflow in Salesforce is basically a container or business logic engine which automates certain actions based on particular criteria. If the criteria are met, the actions get executed. When they are not met, records will get saved but no action will get executed.

Have a look at the topics to be discussed in this section:

Watch Intellipaat’s Salesforce Tutorial For Beginners video:

Before getting into more depth, let me elaborate a little more about what exactly workflow rules in Salesforce are.

Workflow rules are a feature found in business process management software or workflow automation tools that allow businesses to automate and streamline processes by outlining a sequence of steps or actions to be taken based on certain conditions or triggers.

Workflow rules enable organizations to set specific rules and criteria that determine how data or tasks will flow within their system. Once defined, these rules can be configured to automatically initiate actions such as sending notifications, updating records, assigning tasks or initiating approval processes based on predefined conditions.

Get a detailed understanding of the Salesforce Automation System!

Businesses that implement workflow rules can streamline and automate their processes to increase efficiency while decreasing manual effort. They can enforce consistency, ensure compliance, and eliminate manual intervention for routine tasks by setting rules to govern workflow processes.

Below is the basic structure of a workflow rule in Salesforce:

What Are Workflow Rules

Learn about How to create Salesforce Application before moving forward!

Components of Workflow in Salesforce

Workflow rules in Salesforce can be broken down into two main components:

  • Criteria: Criteria are conditions you are supposed to put in order to test a record. For example, if you’re from a technical background, what the if statement does in an if/then condition is what criteria mean in a workflow.
  • Actions: Actions occur after a record meets the criteria. Again, what the then statement does in the if/then condition is what an action means in the workflow.

Also, learn about types of flows in Salesforce.

Types of actions present in a workflow in Salesforce:

  • Immediate actions: Actions that get executed immediately when a record is created or edited
  • Time-dependent actions: Actions that get executed after a certain duration of time, such as 10 days, before a record’s close date. After this time period, the workflow rules in salesforce will re-evaluate the record just to make sure that the rule criteria are met. If the record meets the criteria, the aligned actions will be executed.

The following steps occur whenever you create or edit a record:

  • The criteria of a particular workflow rule active on that object get evaluated.
  • If this stands:
    • True: The actions associated with the particular workflow rule get executed.
    • False: The records get saved without executing any action.

So, workflow rules in Salesforce can be used to automate actions based on some criteria. They can trigger an action when a record is created or edited.

Want to know more about Salesforce? Get an Introduction to Salesforce and enhance your knowledge!

Send a source message from Salesforce to any number of target systems; this allows them to remain synchronized with Salesforce. Now you may be wondering about the evaluation criteria for workflow rules; let’s dive further into this topic.

Get 100% Hike!

Master Most in Demand Skills Now !

Also, check out the blog on Salesforce Trailhead.

Types of evaluation criteria:

  • Created: Whenever a record is created and the criteria match with the record, the action is executed.
  • Created and edited it: Whenever a record is created or updated, the action will be executed.
  • Created and every time it’s edited to subsequently meet the criteria:
    • Whenever a record is created and it stands true to the criteria, the action will be performed. Now, if the record is edited and it doesn’t meet the criteria, the action will not be performed.
    • Suppose, the created record doesn’t meet the criteria, and then it is edited or updated to meet the criteria. It will be evaluated again and, if it meets the criteria, the action will be performed. Otherwise, it won’t be performed.

Workflow rules in Salesforce can have n number of actions at a time. The following actions can be triggered using workflow rules in Salesforce:

  • Assigning a task to someone
  • Doing a field update
  • Sending an email
  • Sending an outbound message

To learn in-depth about Workflow in Salesforce, sign up for industry-based Salesforce Training.

How to Configure Workflow Rule Criteria?

By now, you know the basics of workflow rules in Salesforce. Now, you will come to know how to configure workflow rule criteria.

Once you log in to your Salesforce account, you will see the following screen:

Step 1: You’ll see a menu on the left side of the screen. Scroll down to find Process Automation. Under this section, find Workflow Rules and click on it

How to Configure Workflow Rule Criteria

Step 2: On the new screen, click on New Rule to create a new workflow rule as shown in the image below:

Step 2

Step 3: You need to select an object now. You can choose any object from the drop-down menu. For practice, select Lead as the object

Step 3

Step 4: In this step, you will configure the Workflow Rule. To do so, you need to enter the following details:

  • Edit Rule: Enter Rule Name
  • Evaluation Criteria: Choose the required Evaluation Criteria
  • Rule Criteria: Select criteria that are met from the first drop-down menu. In the Field section, select the required field criteria. Explore the different Field Types according to your wish

Then, hit Save & Next

Step 4

Career Transition

Career Transition to Big Data - Yogesh's Success Story | Big Data Hadoop Course - Intellipaat Review
Intellipaat Reviews - Salesforce Training | Career Transition to Salesforce Marketing Cloud Admin
Salesforce Admin To Salesforce Developer | Got Job With Salary Hike | Intellipaat Career Transition
Intellipaat Reviews - Salesforce Training | Career Transition | Got a New Job With 100% Salary Hike
Got Job As a Salesforce Developer at Ericsson with Salary Hike | Intellipaat Career Transition
How to become a Salesforce Admin | Got Job Just After 1 Month | Intellipaat Career Transition

Step 5: In this step, you will need to add a Workflow Action. Select the action from the drop-down option (here, New Email Alert), and then click on Done

Step 5

Step 6: In this step, you will create an Email Alert. To do so, you need to fill the following details:

  • Description: This textbox must contain what the Email subject should say
  • Unique Name: This will appear automatically similar to your description
  • Email Template: An Email Template is the template of the text that will be present in the email. You can create an email template on your own or you can choose from the default options. You can do so by clicking on the magnifying icon beside the textbox
  • Recipients: Select the recipients to whom the mail has to be sent

After filling in all the details, click on Save

Preparing for an Interview! Check out our Top Salesforce Admin Interview Questions.

Step 6

Step 7: Next, on the following screen, click on Done to save the existing progress

Step 7

Step 8: Now, click on Activate to activate the workflow rule

Step 8

Step 9: Click on the + button and select Lead or the object name you created from the list

Step 9

Step 10: Click on New to Create a Salesforce Record

Step 10

Step 11: After you click on New, the following screen will appear. Enter all the necessary details here and click on Save

Step 11

After saving, a screen showing the confirmation of data will be displayed

data will be displayed

Also, a confirmation mail will be sent to you

will be sent to you

Now, for the time-dependent workflow actions:

Step 12: In this step, you will try to add the Time Trigger. For that, go to your Workflow Rule page and click on Edit

Step 12

After that, Deactivate the workflow rule and click on Edit

Deactivate the workflow rule and click on Edit

Now, click on Add Time Tigger

Add Time Tigger

Step 13: Select the number of days, months, or years after which you want the action to be executed and click on Save

Select the number of days, months, or years you want the action to be done in and click on Save

Now, the trigger has been created. You can add the preferred workflow action. Here, select New Email Alert

New Email Alert

Wish to crack Salesforce job interviews? Intellipaat’s Top Salesforce Interview Questions are made for you!

Step 14: Create the email alert as created before

Create the email alert as created before

Step 15: Click on Activate

Click on Activate

Your workflow rule is created successfully!

As we come to the end of this Salesforce Tutorial section on Workflow in Salesforce, I hope you have a complete set of information on what workflow in Salesforce is and how to use it.

become a salesforce expert

Have you got more queries? Come to our Community and get them all clarified today!

Course Schedule

Name Date Details
Salesforce Certification 23 Mar 2024(Sat-Sun) Weekend Batch
View Details
Salesforce Certification 30 Mar 2024(Sat-Sun) Weekend Batch
View Details
Salesforce Certification 06 Apr 2024(Sat-Sun) Weekend Batch
View Details