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
Christopher MilnerChristopher Milner 

Validation Rule for Contacts Pertaining to a Specific Account

I am attempting to write a validation rule to fulfill a customer request. Essentially, we have a custom field on the contact record called "Division". The short version is, I would like a validation rule that restricts a record from being created/saved if "Division" is blank when the related account = 0013200001FTkYh (ID of the account in question). Any help would be appreciated!
Best Answer chosen by Christopher Milner
Christopher MilnerChristopher Milner
That did not quite do it for me, but it helped point me in the correct direction, thanks! I actually got it to work with the following:
AND( 
AccountId = '0013200001FTkYh', 
ISBLANK( Division__c ))

All Answers

ApuroopApuroop
Hey Chris, Use your account name instead of Edge Communications and the correct API name for the division field.

Try this:
AND( IF( Account.Name = 'Edge Communications', true, false), ISBLANK( Division__c ) )
Christopher MilnerChristopher Milner
That did not quite do it for me, but it helped point me in the correct direction, thanks! I actually got it to work with the following:
AND( 
AccountId = '0013200001FTkYh', 
ISBLANK( Division__c ))
This was selected as the best answer