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
nelle3223nelle3223 

Validation Rule to keep a profile from creating leads

Hello I am trying to come up with a validation rule so a certain profile cannot create a lead.  Can you help?
Sagar PareekSagar Pareek
AND(
ISNEW(),
 CreatedBy.Profile.Name = "Profile_Name")
Mudasir WaniMudasir Wani
Hello,

Use the below code
IF( $Profile.Id =='00e24000000oD3e', true, false)

Donot forget to select best answer to make our efforts visible in the developer forum.
Please mark this as solution by selecting it as best answer if this solves your problem, So that if anyone has this issue this post can help

 
nelle3223nelle3223
It worked thanks!
Mudasir WaniMudasir Wani

Please choose the best answer and make it solved.
So that if any one has such issue this post will help