- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2025 01:17 AM
Hi Experts, In Sow View , When an interaction is created and then converted to other ticket types such as incident, change, request and problem. When these tickets are complete, the interaction should also be marked as complete.
I Created BR for this requirement but is not working. Please help me on this
Thanks
Script:
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2025 06:22 AM
you can use after update business rule on Task table.
Whenever INC/PRB/CHG is created from interaction, an entry is made into this table "interaction_related_record"
You can use this table to know which interaction to close when INC/PRB/CHG is closed
Business rule: task table
Condition:
Script:
(function executeRule(current, previous /*null when async*/ ) {
// Add your code here
var gr = new GlideRecord("interaction_related_record");
gr.addQuery("task", current.sys_id);
gr.query();
if (gr.next()) {
var interactionRec = gr.interaction.getRefRecord();
interactionRec.state = 'closed_complete';
interactionRec.active = false;
interactionRec.update();
}
})(current, previous);
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2025 01:24 AM
Hi @keerthana10
Something similar:
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
06-12-2025 01:57 AM
Hi @Dr Atul G- LNG i checked those 2 links , the first link totally different for my requirement .
1. if i try closed to any child record like (incident , problem , change and request) , then the parent interaction record should be closed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2025 04:09 AM
Hi @keerthana10
I shared the link as a reference, but in practice, as soon as the child record is created, the interaction must be closed. There is no purpose in keeping two records open for the same issue.
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
06-12-2025 06:12 AM
Hi @Dr Atul G- LNG i Agreed this , but customer wants this requirement