SC task rejected but RITM state shows as Closed Complete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2024 08:25 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2024 08:36 AM
Hi @GBS
I checked the OOTB and it is seems an expected behaviour.
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
02-26-2024 01:05 PM
Hi @GBS ,
You can Try after update BR
Table: sc_req_item
condition as shown below,
Note: better to keep your catalog item in condition so that it will not run for others,
In action, to update requested item state
In advanced, to update Request table
code
(function executeRule(current, previous /*null when async*/) { var reqUpdate = new GlideRecord('sc_request'); reqUpdate.addQuery('sys_id',current.request); reqUpdate.query(); if(reqUpdate.next()){ reqUpdate.state = 4 ; reqUpdate.request_state = 'closed_cancelled'; reqUpdate.update(); } })(current, previous);
Please mark this comment as Correct Answer/Helpful if it helped you.
Regards,
Swathi Sarang
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2024 01:15 PM
Hi @GBS ,
This is known issue in ServiceNow. ServiceNow provided the solution to fix this issue.
Please refer to below article:
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0827184
If I could help you with your Query then, please hit the Thumb Icon and mark it as Correct !!
Thanks & Regards,
Sumanth Meda