function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Harikrishna MandadapuHarikrishna Mandadapu 

validation rule on tasks

how to prevent users from deleting task if it is closed using validation rule
Best Answer chosen by Harikrishna Mandadapu
Dutta SouravDutta Sourav
Try This:
AND(
        NOT(IsClosed),
        ISCHANGED(Status),
       OwnerId<>$User.Id
)

 

All Answers

Dutta SouravDutta Sourav
You need to write a Trigger to achieve this. 
Harikrishna MandadapuHarikrishna Mandadapu
Thank you Sourav, I have written a trigger for that. I am trying to achieve it through validation rule. Isn't it ppossible?
Dutta SouravDutta Sourav
No Harikrishna! Through Validation Rule, it's not Possible.
Harikrishna MandadapuHarikrishna Mandadapu
other than task owner no one can close it. Can you help me on validation rule for this.
Dutta SouravDutta Sourav
Try This:
AND(
        NOT(IsClosed),
        ISCHANGED(Status),
       OwnerId<>$User.Id
)

 
This was selected as the best answer