Incidents are set to closed after 48 hours of being moved to 'Resolved state excluding weekends

Nagashree5
Tera Contributor

Hi All,

 

We have a custom table that is called "IT Incidents". After being resolved, these IT Incidents needs to be set to closed after 48 hours of being resolved and weekends should be excluded.

Can anyone please suggest.

 

TIA.

8 REPLIES 8

@Nagashree5  I could help you with your Query then, please hit the Thumb Icon and mark as Correct !!

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Nagashree5 

 

Did you check the OOTB Incident property?

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Ankur Bawiskar
Tera Patron
Tera Patron

@Nagashree5 

what's the use of custom table when already OOB incident table is available?

OOB incidents which are resolved and not updated in 7 days are closed automatically. refer the script and enhance the logic to close after 48 hours skipping weekends.

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

SANDEEP28
Mega Sage

@Nagashree5  I could help you with your Query then, please hit the Thumb Icon and mark as Correct !!