I need to set Interactions to "Closed Complete" after Incident is set to "Resolve."

carlosllano
Tera Contributor

I'm trying to create a Business Rule to get my "Integration" set to "Closed Complete" after the created incident is set to "Resolve."

 

6 REPLIES 6

Chandra18
Mega Sage

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

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!

Unfortunately, it didn't work.

Ryan S
Kilo Sage

Why are you waiting until the incident is resolved to close the interaction, instead of closing the interaction record once the incident is created?