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
ShreyankaShreyanka 

Preventing record creation from Tab and related for set of users

I have created permission set for users who can create records. Also, created "Custom permission" too. Now I have to write a validation rule by calling custom permission into it to prevent users from creating records. How to write validation rules to achieve this.

Please help me to achieve this.


Thanks in advance!!
Sai PraveenSai Praveen (Salesforce Developers) 
Hi Shreya,

You can just use the below condition if you want to allow user only based on custom permission for creation.
 
Not($permission.Custom permision name)



Just replace Custom permision name with your custom permission API name

If this solution helps, Please mark it as best answer.

Thanks,