 Hello friends, I am Sanjay Gupta. I welcome you on Sanjay Gupta Tech School. In this video, I am going to demonstrate the use of this reevaluate workflow rule after field change. So I am going to demonstrate you how it works in workflow rules. Meanwhile, you can see how you can watch Salesforce training videos. So you can search my name Sanjay Gupta on YouTube and you can follow my YouTube channel. So now coming onto the topic. So here you can see I have created one workflow rule and that is updating a field lead source. So I created this workflow rule on contact object. So whenever I create or update any contact record, so this lead source field will be updated and its value will be web. And right now this reevaluate workflow rule after field changes unchecked. So let's understand what is this. So with the help of this help text, you can read this description. If this field update changes the field's value, all workflow rules on the associated object are reevaluated. Any workflow rule whose criteria are met as a result of the field update will be triggered. So after this workflow rule will be fired, so lead source value will be web. So I have one more workflow rule where rule criteria is if contact lead source equals to web, then this workflow rule will be triggered and it will send an email alert. So now we want to make these two workflow rule as dependent. Like if this is fired, then this should be fired. So right now this checkbox is unchecked so that we can test it whether it is working or not. So I'm opening my university app. So let's see its rule criteria so that we can fill the values accordingly. So its rule criteria is that email should contain at the email.com and it will be fired when when record is created or any time it's edited to subsequently meet criteria. So let's see what happens when this rule is triggered, whether a second rule will trigger or not. So I'm creating new contact. So test T evaluate one. Then here I'm filling my email address and lead source is right now none. So whenever I will be clicking on save. So this record will be created and you will see lead source will be set a web automatically. So I'm clicking on save record is created. I'm moving to details and here you can see lead sources web automatically. Let's check my email box. So here you can see no email is available. This is the existing one. So I'm just deleting this one. So you saw I created one record where I filled the email and this rule triggered and it updated the field as a lead source as web. But this didn't work because we didn't check the checkbox. So now I'm going to click on edit. And I'm selecting this and clicking on save. So now if we create a record and put email that contains adred gmail. So adred gmail.com. So this lead source will be updated its value will be bad. Then this work for rule will be triggered and it will send an email that is associated with this email alert. So now I'm going to create one more record. Name is test the evaluate. Now I'm putting email address and clicking on save. So you will see showing duplicate errors. I'm changing last name. Clicking on save. So it is not allowing me. Yeah, I'm changing this name again. Test the evaluate. So this time it is created. You can see the source is bad. And now if we check our email, so you can see here email is available. So it is sending this congratulation email. Which is associated with this workflow rule. Right. And this email is because of another workflow rule. So another workflow rule is. Creating a task. Let me show you so that you can understand the workflow rule. That is also having our same rule criteria. That is lead source is equals to that. And it is creating a task. So that's why the second email is related to that. So task is created and it is assigned to the class and priority due date subject comments. All these things are available. And if you see, you can see on activities, the task related details are available. So you can see. I create, I created a record and put email having address email dot com. This rule updated a field lead source as well. And on that lead source field, we have to work for rules. Where rule criteria is batching. One is create tasks for contact. And another one is send email alerts. So both are working because we check that check box. And that the evaluate rule criteria. So this was the second one. It is also having same rule criteria. So we go again. Here. So here you can see. This checkbox is checked right now. So friends, if your multiple work for rules are interdependent, like if you are firing one work for rule and that is setting. That is updating a particular field value. And based on that field, your another work for rule are firing. Or you can say the updated field is the part of the field. Or you can say the updated field is the part of your rule criteria of another work for rules. And you want to execute them in a row. So you can check this checkbox as true so that it can be made happen. So you can test it in your own so that you can understand how it is working. If you have any question, you can send me an email so that you so that you can discuss this with me. And if you want to watch more Salesforce training videos, you can search my name Sanjay Gupta on YouTube and you can follow my YouTube channel. Thank you for watching this video.