0

I have the following validation rule to prevent a certain user from creating Account records of certain recordtype. However it is not working. The user can create records of this record type.

AND(
  ISNEW(),
  RecordTypeId = "012Z0000000ZXxXXXXX",
  $User.Alias = "something"
)
  • 3
    never use hardcoded IDs - use RecordType.DeveloperName = 'Foo' – cropredy Jun 29 at 22:40
0

Issue might be related to record-type id or User aliasname.

Instead of hardcoding the id's you can use RecordType.DeveloperName = "API name of record type" or RecordType.Name = "Label name of record type". If you still want to use Recordid try using "RecordType.Id"

enter image description here

RecordType documentation

| 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.