 Hello friends, I am Sanjay Gupta. I welcome you on Sanjay Gupta Tech School. In this video, I'm going to demonstrate you how we can implement validation rules in Salesforce Classic. Before starting, let me share you how it's been searched on YouTube. You can type my name, my channel will be available. You can follow Salesforce related video series there. So now I'm searching for the custom objects. So I'm taking employee as an example. So I'm opening employee object. So if I scroll down. So in Salesforce Classic, whenever you open any object, you will see the validation really related list. And if you click on new so you can apply a validation rule. So by clicking on new button, we have this page and here we can create a validation rule for employee object. So I'm opening employee tab. And here if we open this record, so you will see a field that is salary. So we are going to apply validation rule on salary. So name of rule is salary check rule. Description is salary should not be negative. So whenever user enters salary in negative, then this validation rule will fire. Here you can see two buttons are available insert field and insert operator. So insert operator provides these operators. You can use these operators while building this formula expression. So now I'm going to insert fields. So I'm going to insert this salary field and I'm implementing this salary underscore underscore C less than zero. So here you can read this. So if this formula expression is true, then display the text defined in the error message area. So if this condition is true, then we need to show a particular message. So salary should be provided in positive. Then you can see there are two locations are available top of the page and the field where this validation error will be occurring. So you can read this display or error message next to the field. The user should correct if your validation will checks several fields display the error message at the top of the page. So right now we are picking only one field for making this validation rule. So this help text is saying that that if you are choosing more than one fields, then don't choose this particular field for location. You should choose top of the page. So I will show you both. So first time choosing top of the page and I'm saving this. So this way you can see this validation rule is created. Then condition and error message both are available here. Now I'm going to apply this. So first I'm going to add this record and then I will be creating new one. So this will apply for both. So I'm entering this value minus 10,000. So you can see error message displayed here. Salary should be provided in positive. Now I'm canceling it and I'm going to create a new record. So here also if I enter negative value, so it will throw an error message. So first it is checking these standard validation so I'm fulfilling these first. So I selected opportunity and field employee ID. Now with this negative salary and clicking on save. So you can see it is showing review all error message below to correct your data. Salary should be provided in positive. So it is showing error message for this validation that we applied. So I'm now I'm canceling it. Moving to a validation rule into edit it. Now I'm going to select this field. So error message will be displayed near to this field. So earlier it was displaying at the top of the page. So now if I select employee ID and opportunity and fill negative salary. So you will see the error message will be available near the field. So here you can see the error message is available near the field. So this way we can apply validation rule, but remember one thing. If you have multiple fields and validation rule, then try to choose this error location as top of the page. Because if you have multiple fields, then you will not be able to select a particular field. So better to choose top of the page. Then you have various functions here also that you can choose to build your formal expression. So I will be creating separate playlist for this as where you will see various validation rule formal expression. So you can learn about them there also. So this is brief about validation rule how we can implement validation rule in Salesforce classic. I hope you understood whatever I demonstrated in this video. If you want to watch more Salesforce related videos, you can search me on YouTube by my name. Thank you for watching this video.