I want that if Profile of User is not system administrator
then if the user updates Title
field of User Object
then it does not get updated or updates to its previous value.
For this I created a workflow, on User object having :
Evaluation criteria : created, and any time it’s edited to subsequently meet criteria
and Rule Criteria : Run this when following formula evaluates to true
Formula is : Profile.Name <> 'System Administrator'
and in New Field Update
I have chosen Title
in field to update.
and in Specify New Field Value I have written this in formula field priorvalue(title)
Workflow rule is active. But the user is still able to change the title. Where I am going wrong? Please help
Best Answer
You can use a Validation rule instead of a workflow. A workflow would be fired after a successful update, which I don't think will work in your case.
You typically want the update to be prevented due to not meeting certain conditions, which is exactly what a validation rule is used for.