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
Atul PratapAtul Pratap 

Validation rule are not working

The requirement is like ECom Finance Advisor profile user do not have permission to close the cases and still if he trying to close the case, it should give error. For this i have written a validation rule like below, but it is not working.

AND(Owner:User.Profile.Name="ECom Finance Advisor", 
ECom_Quick_Close__c == true)

ECom_Quick_Close__c is checkbox type field and ECom Finance Advisor is name of the profile.
Yuvaraj mayilsamy 9Yuvaraj mayilsamy 9
Atul,

 Try this below. But i have not checked whether it working. Replace the profile id by ECom Finance Advisor profile id.

AND( $User.ProfileId = '00e7F000001lDDDQA2' ,ECom_Quick_Close__c == true)

Mark this as best answer if this solves your question.

Yuvaraj
Arpit Jain7Arpit Jain7
Atul,

Try below validation rule and you should be good to go

AND( $Profile.Name = 'ECom Finance Advisor' ,ECom_Quick_Close__c)

Let me know for any issues.

Thanks
Arpit