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
SF-PD RookieSF-PD Rookie 

Validation rule to prevent Creation of new Account on Lead conversion

How do I write a validation rule that would prevent users from creating a New Account while converting leads? We need them to select an existing account. My formula isn't really working, could someone show me a sample of what it needs to looks like?

Thanks a lot!
Best Answer chosen by SF-PD Rookie
CharuDuttCharuDutt
Hii SF-PD
Try Below
You can add a Validation Rule to the Account object with a Formula like this: 
AND( 
ISNEW(), 
$Profile.Name <> "System Administrator")
make sure you enable Enforce Validation in the Lead Settings User-added image
Please Mark It As Best Answer If It Helps
Thank You!

 

All Answers

CharuDuttCharuDutt
Hii SF-PD
Try Below
You can add a Validation Rule to the Account object with a Formula like this: 
AND( 
ISNEW(), 
$Profile.Name <> "System Administrator")
make sure you enable Enforce Validation in the Lead Settings User-added image
Please Mark It As Best Answer If It Helps
Thank You!

 
This was selected as the best answer
SF-PD RookieSF-PD Rookie
Thanks for this Charu. It worked fine where I wanted it to (while converting a lead). 
But this rule fires when a non-admin tries to create a New Account (separately, not while converting a lead). What changes can I make this rule?
CharuDuttCharuDutt
Hii SF-PD
You Can Remove System Admin Condition From validation