- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2024 05:33 AM
I have an issue where my ServiceDesk group doesn't want to presume how to route Calls or Emails sent to their queue. They want to just reassign the Interaction to the support group.
This would normally be fine, however the support groups don't pay attention to this ticket type. Despite repeated efforts to bring them to their attention.
My thought then is to run a script every hour to review the active interactions and force them to a specific "Ticket Type" and even if that were wrong, there is a UI action to convert the ticket to another type. E.G. Incident to Requested item and vise versa.
My script i've tried is
var tbl = 'interaction';
var gr = new GlideRecord(tbl);
gr.addEncodedQuery("stateNOT INclosed_complete,closed_abandoned^assignment_group!=aa9be604dbd76b000d95561bdc96199d^ORassignment_group=NULL^assignment_group!=51e79072dbb507001e28dbbb5e9619d6^ORassignment_group=NULL");
gr.query();
while(gr.next()){
gr.u_interaction_type = "request";
gr.update();
}
This unfortunately is only updating 1 record per run. So maybe run this every 5 minutes??
What can i do to make it loop through each? E.G. there are 5 interactions not assigned to the ServiceDesk groups.
Any thoughts on how to convert the OPEN records all at once.
**Background** When we moved over from Call records to Interactions, my two ServiceDesk groups didnt want to use the OOB methodology for Interactions. I had to allow them to change Assignment group and combine the various UI Actions into the SAVE UI Action. UGH!! Nightmare. But it works.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2024 06:11 AM - edited 04-11-2024 06:13 AM
OK never mind. I found a tread about using .updateMultiple();
This appears to be doing exactly what i need.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2024 06:11 AM - edited 04-11-2024 06:13 AM
OK never mind. I found a tread about using .updateMultiple();
This appears to be doing exactly what i need.