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
ArunForceArunForce 

Writing validation rules on custom object by refering custom setting field values

Hi ,
I want to write the validation rules on cstom object.I am atoring some configuration values in customsettings. NowIwanttowritetherulesayingthat 'customobject__c.period__c=$Setup.customsettings__c.period__c'. But it is giving the syntax error. Can we refer the custom setings values inside the validation rules?If not what are the alternatives we have.
Can someone please help me to solve this issue.


thanks,
Arun.

Sonam_SFDCSonam_SFDC

Hi Arun,

 

Yes you can reference Custom Settings inside validation rules.

 

Some usage examples are given in the below links:

http://boards.developerforce.com/t5/Formulas-Validation-Rules/Custom-Settings-for-validation-rules/td-p/321879

https://success.salesforce.com/answers?id=90630000000gtEkAAI