→ 🚀What's New? Explore Lansweeper's Fall 2024 Updates! Fall Launch Blog !
‎01-03-2017 08:43 PM
‎03-09-2018 04:29 PM
‎03-06-2018 01:41 AM
‎03-05-2018 11:09 AM
‎03-01-2018 04:23 PM
‎03-01-2018 04:18 PM
‎03-01-2018 03:49 PM
USE [lansweeperdb]
GO
/****** Object: Trigger [dbo].[AutoAssignTicket] Script Date: 6/22/2017 2:58:14 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER TRIGGER [dbo].[AutoAssignTicket] ON [dbo].[htblticket]
FOR INSERT As
/**** Jordan's Tickets */
Update htblticket
set agentid = '16'
FROM htblticket
Join htblusers htblusers1 On htblusers1.userid = htblticket.fromuserid
where
(htblticket.agentid IS NULL And htblticket.tickettypeid = '1' And htblusers1.company like 'Hudson School District')
or
(htblticket.agentid IS NULL And htblticket.tickettypeid = '1' And htblusers1.company like 'Early Learning Center')
or
(htblticket.agentid IS NULL And htblticket.tickettypeid = '1' And htblusers1.company like 'SAU81')
/***** Kevin's Tickets */
Update htblticket
set agentid = '17'
FROM htblticket
Join htblusers htblusers1 On htblusers1.userid = htblticket.fromuserid
where
(htblticket.agentid IS NULL And htblticket.tickettypeid = '1' and htblusers1.company like 'Nottingham West Elementary School')
or
(htblticket.agentid IS NULL And htblticket.tickettypeid = '1' and htblusers1.company like 'Hudson Memorial School')
/*Pete's Tickets */
Update htblticket
set agentid = '19'
FROM htblticket
Join htblusers htblusers1 On htblusers1.userid = htblticket.fromuserid
where
(htblticket.agentid IS NULL And htblticket.tickettypeid = '1' and htblusers1.company like 'Alvirne High School')
or
(htblticket.agentid IS NULL And htblticket.tickettypeid = '1' and htblusers1.company like 'Hills Garrison Elementary School')
‎03-01-2018 03:24 PM
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now