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
sourabh shresthasourabh shrestha 

Using custom label in validation rule

Hi , I have one requirement . I have a validation rule in which we have used conditon to check  >45 and it is used in many places  in that rule. Is ther any way so that if i change in one places, it should reflect for all . In future may be it will be 30 or 15. 

I felt custom label can work. But can we call that in valdiation rule.

 

ForceTechForceTech

Hi,

 

Yes, you can use custom label in validation rule like this 

 

VALUE($Label.Label_Name)

 

 if label doesn't contain number value then you don't need to use value method with label.

 

Please mark my answer as a solution if it was helpful so it is available to others as a proper solution.
If you felt I went above and beyond, please give me Kudos by clicking on the star icon.

 

Thanks

 

sandeep@Salesforcesandeep@Salesforce

No we can not use custom Label in formula field anyway