Current User Id check in Salesforce Validation Rule

Current User Id check in Salesforce Validation Rule

$User.Id can be used in Salesforce Validation Rules for the current running user ID.

Sample Validation Rule:

AND(
ISNEW(),
$User.Id != Account.OwnerId
)

Output:

Leave a Reply