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
Indoberto LermaIndoberto Lerma 

How do i stop a trigger if a criteria changed

Hi there is a workflow on my org where in a case after 5 days on a resolved status the case closes. the problem is that if the someone select reopen while the case is resolved, it does not stop the trigger and the case will close also from the re open status.

How do i change this ?
Mudasir WaniMudasir Wani
Hi Indoberto,

You can use the status criteria in your workflow and that will solve the problem.
Because workflow will check the value at the run time.

Let me know if you have any question.
If you have any difficult just paste your workflow criteria here.

Don't forget to select best answer to make our efforts visible in the developer forum.
Please mark this as solution by selecting it as best answer if this solves your problem, So that if anyone has this issue this post can help