I need to set Interactions to "Closed Complete" after Incident is set to "Resolve."
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2024 08:15 AM
I'm trying to create a Business Rule to get my "Integration" set to "Closed Complete" after the created incident is set to "Resolve."
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2024 04:29 AM - edited 12-15-2024 11:42 PM
Hi @carlosllano ,
Create a Business Rule (BR) is on Incident table. Type : After - Update
Condition: incident is Resolved
Script:
ar gr = new GlideRecord('interaction');
gr.addQuery('sys_id', current.u_interaction);
gr.addQuery('active', true);
gr.query();
while(gr.next())
{
gr.state = 3;
gr.comments = 'Interaction Closed';
gr.update();
}
If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.
Thank You!
Chandra
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2024 02:03 AM
Hi @carlosllano ,
Did this way resolved your issue ? Let me know if you need any further assistance!
If you found my response helpful, please consider selecting "Accept as Solution" and marking it as "Helpful".
Thank You!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2024 06:06 AM
Unfortunately, it didn't work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2024 08:46 AM
Why are you waiting until the incident is resolved to close the interaction, instead of closing the interaction record once the incident is created?