A filter with no customer in notification event

Moderator: crythias

Locked
ndhvu275
Znuny advanced
Posts: 139
Joined: 06 Nov 2012, 09:02
Znuny Version: 3.x, 4.x and 5.x
Real Name: Vu Nguyen
Company: INFOdation
Location: Netherlands
Contact:

A filter with no customer in notification event

Post by ndhvu275 »

Dear all,

I'm working on otrs 3.3, I'm trying to config a filter with CustomerID = null in a Notification Event. Is it possible with regex? Do you have any idea about please help

Thanks

Vu Nguyen
OTRS 3.x, 4.x on CentOS/Windows
MySQL database
External customer backend with MySQL, MSSQL
Customization
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: A filter with no customer in notification event

Post by crythias »

in general, you shouldn't be able to create a ticket without a customerID, even if the customer doesn't have one, it defaults to email address.
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
Miskra
Znuny newbie
Posts: 3
Joined: 03 Sep 2013, 16:32
Znuny Version: 3.2.7
Real Name: Marcin Iskra

Re: A filter with no customer in notification event

Post by Miskra »

crythias wrote:in general, you shouldn't be able to create a ticket without a customerID, even if the customer doesn't have one, it defaults to email address.
Sorry to enter not my Topic, but I have similar issue. Is the above true also for creating Tickets via SOAP and Web Service? If customer does not exist, will e-mail address be treated as Customer ID or will Customer ID be left as null?
ndhvu275
Znuny advanced
Posts: 139
Joined: 06 Nov 2012, 09:02
Znuny Version: 3.x, 4.x and 5.x
Real Name: Vu Nguyen
Company: INFOdation
Location: Netherlands
Contact:

Re: A filter with no customer in notification event

Post by ndhvu275 »

Hi,

I did it by a customization. You can go to file /opt/otrs/Kernel/Ticket/Event/NotificationEvent.pm, let make a filter "no customer" in it

Vu Nguyen
OTRS 3.x, 4.x on CentOS/Windows
MySQL database
External customer backend with MySQL, MSSQL
Customization
Locked