Add new field to Generic Agent

Moderator: crythias

Locked
bayerex
Znuny expert
Posts: 164
Joined: 03 Dec 2012, 00:30
Znuny Version: 3.2.7

Add new field to Generic Agent

Post by bayerex »

Hi all,

I've created a new field "VIP" in the customer_user table. Agents now have the possibility to select and indicate if the customer is a VIP or not.

The question comes now whether it's possible to add this field to generic agent so that if any VIP customer creates a ticket then notifications can be generated from that. Fail that, I guess we could just add the customer number but this would be the prefered method.

Thanks in advance.
Current Production Server (recently switched from Windows)
OTRS 3.2.7 on Ubuntu 12.04LTS 64bit
PHP 5.3.10-1ubuntu3.6
mysql Ver 14.14 Distrib 5.5.31

Previous Production Server:
Windows 2008
MySQL 5.1.51 Community Server
Strawberry Perl 5.12.3.0
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Add new field to Generic Agent

Post by crythias »

If these are VIPs, perhaps you might need a VIP queue which would take care of most of this request. Generic Agent would be too slow. Postmaster Filter would be "better" but it doesn't natively support customer information. However, it does look for "From" email addresses and then can set the queue accordingly.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
seberget2
Znuny newbie
Posts: 74
Joined: 17 May 2013, 09:30
Znuny Version: 6.0.30
Real Name: Stein Erik Berget

Re: Add new field to Generic Agent

Post by seberget2 »

crythias wrote:Generic Agent would be too slow.
If you since you posted this question have upgraded to 3.3.3, you could use the new 'event' part of Generic Agent. You would 'act' on the 'Ticket: TicketCreate' event and do what's needed there.
crythias wrote:Postmaster Filter would be "better" but it doesn't natively support customer information. However, it does look for "From" email addresses and then can set the queue accordingly.
You could here then attach a 'note' or whatever you like, but as mentioned above there is no information (natively) about the CustomerUser or CustomerCompany in GenericAgent :-(
OTRS 6.0.12 on Ubuntu with MySQL DB, and various plug-ins and a hack or two :-D
Sascha79
Znuny newbie
Posts: 38
Joined: 23 Jul 2009, 09:21
Znuny Version: 5.0.22 (GIT)
Real Name: Sascha

Re: Add new field to Generic Agent

Post by Sascha79 »

Write your own module for generic agent and trigger it by event.
"Production": OTRS5 (Ubuntu 16.04.4 Server (LTS) / Apache2 / MySQL 5+
Locked