You need to sign in to do that
Don't have an account?
Paula Jarvis 4
Contact Validation Rule misfiring
I have a VR that requires all Users except for Sys Admin and Data Integrity Officer to enter an EMail Address for a particular Contact Record Type. This VR is not recognizing that Users actually entered an email address. It still blocks the User from saving ther record even though the email address is entered. Here is my VR. Feedback would be appreciated. Thank youDeveloper Community!
AND(
$Profile.Name <> 'Custom Data Integrity Officer',
$Profile.Name <> 'System Administrator',
AND(
OR(
ISNEW(),
ISBLANK(Email),
AND(RecordTypeId = "012500000009VLe"))))
AND(
$Profile.Name <> 'Custom Data Integrity Officer',
$Profile.Name <> 'System Administrator',
AND(
OR(
ISNEW(),
ISBLANK(Email),
AND(RecordTypeId = "012500000009VLe"))))
AND(
$Profile.Name <> 'Custom Data Integrity Officer',
$Profile.Name <> 'System Administrator',
ISNEW(),
ISBLANK(Email),
RecordTypeId = "012500000009VLe")
All Answers
AND(
$Profile.Name <> 'Custom Data Integrity Officer',
$Profile.Name <> 'System Administrator',
ISNEW(),
ISBLANK(Email),
RecordTypeId = "012500000009VLe")
AND(
$Profile.Name <> 'Custom Data Integrity Officer',
$Profile.Name <> 'System Administrator',
ISNEW(),
ISBLANK(Email),
RecordType.Name = "RecordTypeName")
Let us know if this will help you
Thanks,
Parker
As per salesforce best practice we should not use the hardcode id in salesforce code as well as in configuration.
ID in sandbox and production will not be same. Suppose if you are creating this validation rule inside sandbox and deploying same in production in that case this fromula/ validation rule may not work in case if ID of role will not match.