Can someone help me with validation rule against Contact.

We have a contact named 'Anonymous Contact' which we are using in several process builders etc.. and I would like to do a validation rule that no one else can edit that contact card (first name & last name or anything else in the contact card) than System Administrator. And this validation rule should apply only on this particular contact.

  • 1
    please takse some time to review How to Ask, have you tried writing one? maybe you can check help.salesforce.com/… and try one before asking someone to do it for you? if you eencounter any troubles, try adding your attempted rule to your question and point out any specific issues you encounmter – glls May 5 '17 at 13:38
  • Hi Lauri, welcome to SFSE! In general, we expect you to attempt to solve the problem and then come here with where specifically you got stuck. You might also consider reading other related posts around SFSE such as Formula Specific to Running User? – Adrian Larson May 5 '17 at 13:43

You can use below validation rule : --

      $Profile.Name <> "System Administrator",
      FirstName  = "Anonymous",
      LastName = "Contact"

explanation : -

  1. Isnew() is checking whether the record is edit mode or new mode.
  2. System Admin can edit the record.
  3. Contact Name you can not find so checking the particular Name need to use the firstName and LastName.
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.