function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Harish NallaHarish Nalla 

How to set validation rule for existing records?

Squire Q KershnerSquire Q Kershner
What are you asking?  Perhaps some additional detail on future posts will help the community understand and respond?

That being said, if what you are asking is "How do I apply a validation rule to existing records to address data quality" then the answer is "you cannot".  Validiation rules run on Save of the record.  However, once you have a validation rule in place, you should be able to create a report of the object, filtering for criteria that break your validation rule, and then update your records with a data load, to address the data quality.

Hope that helps?
Hey Harish,
First go to that object in the right side you can see some small window pop up or directly go to there object and at the top u can see validation rule click on it and go to new validation rule and insert field and operator which u wanna create and make sure check syntax and active mode is on ....
Thank You