Process Advisors

*Subject to Terms and Condition

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.

Get a detailed understanding of the Salesforce Automation System!

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 the 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 the condition is what an action means in the workflow.

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, basically, workflow rules in Salesforce can be used to automate the 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!

You can send a source message to the target system. This can be used to keep the target systems in sync with Salesforce. Now, you must be wondering what the evaluation criteria are for a workflow rule. Let’s discuss this further.

Get 100% Hike!

Master Most in Demand Skills Now !

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

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 is 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.

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

Course Schedule

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

2 thoughts on “Workflow in Salesforce”

  1. Interesting website, I read it but I still have a few questions. shoot me an email and we will talk more becauseeIi may have an interesting idea for you.

  2. Salesforce newbie here. Started by thinking a Trigger was what I wanted – found your Trigger tutorial – read your “Triggers vs. Workflows” entry – realized a Workflow (something I didn’t know existed before visiting your site) was a better solution.

    Creating the Workflow wasn’t difficult, but I did get stuck and needed to refer to your tutorial at Step 7 (click “Done”). I was looking elsewhere and didn’t notice “Done” at the upper right.

    My Workflow is now active, tested, and working correctly. I’ve bookmarked your site and will be visiting other pages.

    Thank you!

Leave a Reply

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