You need to sign in to do that
Don't have an account?
s_rubdi
Validation Rule to Lock a Task Record based on Date
Business Requirement:
Lock records from editing if they are > 2 weeks old.
Proposed Solution:
Develop a validation rule that prevents a non-system administrator end user from editing a record > 14 days old.
Error Condition Formula:
AND
(
TODAY() - (DATEVALUE(CreatedDate)) > 14 ,
NOT( $Profile.Id ="00e3000000xxxx")
)
Validation rule will work just fine. Instead of hardcoding profile ID you can use "$Profile.Name".
All Answers
Instead hardcoing the Id value better to write a trigger where it is possible to have access to the profile with out giving hardcode values.
Validation rule will work just fine. Instead of hardcoding profile ID you can use "$Profile.Name".
Understood - thank you!
Thank you Suree!