- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-26-2024 06:00 AM
I have a custom scoped application inheriting from the incident table. This application only needs one state for closed so we kept that as the state 6 resolved. However, we realized that the global rules are automatically changing the field values to 7 after a couple days for our scoped custom application tables.
Is there a way to make our custom scoped application to not be affected by this global state change without making any global changes?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-26-2024 07:12 AM
Hi @Navaneeth1 ,
There is a OOTB Business Rule named "incident autoclose". This script is updating the extended tables for Incident too.
It is not a best practice to do changes in OOTB scripts but for your requirement you have add a condition like if (
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-26-2024 06:05 AM
Hi @Navaneeth1
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]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-26-2024 07:12 AM
Hi @Navaneeth1 ,
There is a OOTB Business Rule named "incident autoclose". This script is updating the extended tables for Incident too.
It is not a best practice to do changes in OOTB scripts but for your requirement you have add a condition like if (
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-28-2024 12:27 AM - edited ‎03-28-2024 12:31 AM
@Deborah Brown L ,
Thank you so much for this response! Could you please let me know if the condition given below will work?
(current.getTableName()!='x_s_itsm_incident')||(current.getTableName()!='x_g_itsm_hc_incident')
I have two tables that need to be excluded and this is the condition I could think of but I have no way of testing this since the waiting period is 10 days. Could you please check if this condition code is correct syntax-wise? Like should the table name be in 'tablename' or "tablename" or no quotes is needed? or if anything else is missing or needs to be added?
Thank you so much in advance!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-28-2024 06:11 AM
The condition is correct but do a round of testing before moving to Production as it is a OOTB script and if something is wrong, it will affect whole system.
Testing is very important