Skip to main content

Hello Trailblazers,

 

Occasionally cases get mistakenly assigned to the wrong user. I am trying to write a validation rule to stop cases being assigned to certain users, therefore ensuring the case does not get forgotten or overlooked.

 

My idea is to use one of the fields on the user record (The division field for example) and populate the field with a value for each user "Case Worker" and "Non Case Worker" for example.

 

If someone tries to assign a case to a user that has non case worker in the division field they encounter an error message, they will then assign to the correct person.

 

Is this possible to do with a validation rule?

 

Thanks Trailblazers

2 respuestas
  1. 29 jul 2024, 15:37

    The validation rule can be a case statement or If statement that evaluates the division on the user (being added as an owner) as either being allowed to own or not allowed to own the case.   The logic would work like this:  If the case owner's division is x or y or z

     

    Validation rules just need to fire on what you do NOT want.  You don't need to create any fields on the user record.