- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-25-2019 08:23 PM
I would like to make Case [sn_customerservice_case] records auto-closed which passed 10 days since last updated date.
*I understand that Incident table can be auto-closed by setting "glide.ui.autoclose.time", but not sure where to configure for Case table.
Please kindly tell me how to meet this requirement.
Best Regards,
Aki
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-25-2019 08:32 PM
Hi Aki ,
follow the link it might help you :
hope this helps !
mark as correct and helpful if it helps you in any way.
regards,
apeksha
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-25-2019 08:32 PM
Hi Aki ,
follow the link it might help you :
hope this helps !
mark as correct and helpful if it helps you in any way.
regards,
apeksha
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-25-2019 08:34 PM
Hi Aki,
You can write a scheduled job script to check the last updated time and close it.
Set the frequency to day or hour based on your requirement.
Regards,
Mandeep
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-26-2019 12:46 AM
Hi Aki,
You can use below Scheduled job script to auto close your cases after 10 days of last update:
var gr = new GlideRecord("sn_customerservice_case");
gr.addQuery('active', true);
gr.addQuery('sys_updated_on', '<=', gs.daysAgo(10));
gr.setLimit(550); // if you want to set limit in updating the records
gr.query();
while (gr.next()) {
gr.<state field name> =<value of closed> ;
gr.update();
}
Kindly refer the below link to see how to create a scheduled job
Please mark this answer as correct and helpful if it solved your query and only helpful if it helped you in any ways.
Thanks,
Mohit Kaushk