Imagine there are irrelevant cases in your queue and you want to get rid of them. Instead of going through case search and closing them manually, you can simplify your work using the WFA! In this guide, we will show you how to set it up. The scheduler allows you to perform a bulk action in an interval or just once, so it is perfect for our situation.
1. Setting up the interval to execute
Unlike the trigger, which works based on some action, the scheduler is triggered by a time. To set up the time to trigger, click create a Scheduler in the workflow automation/scheduler. Name your scheduler and using the crontab guru, set up the time/ interval.
The data set will be cases, since we are changing their status.
Now we will choose the cases that will be processed by our scheduler. In this case, we want to take new/open cases and close them. So in the conditions choose your desired channels and the statuses new and open (or any other ones you would want ;) )
Now that we have prepared the "what will be affected" (Scheduler), we need to create the "what will happen" (Job). Let's move to the jobs and hit the create new. Choose the change status and closed in the dropdown.
Now we need to add the job to the scheduler back in the scheduler settings and activate it.
And this is it! Now when the specified time hits, all of our new and open cases will change status to closed :)