CustomerID on inbound emails to queue

Moderator: crythias

Locked
pstanbra
Znuny newbie
Posts: 14
Joined: 08 Nov 2013, 12:24
Znuny Version: 6.1.20
Real Name: Paul Stanbra
Company: SysFix

CustomerID on inbound emails to queue

Post by pstanbra »

This has to be really simple..

In the customer backend - there's an option to see all company tickets.
I understand that this is filtered on the customerID field.
I have just one customer user created on the backend. Think of him as my client onsite IT contact. The manager of the business who wants to see all tickets logged by his staff.
We do not set up a user for every staff member - this would take forever and would be a headache (clients are all separate remote businesses)

Instead - we set up a queue and a filter to move all emails from their @domain.com to the queue sent from many email addresses.
SO what I need is some way to set the customerID to all tickets on this filter so that they show up in Company Tickets.

I will also need to apply this ID to all previously logged tickets.
Any Ideas.
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: CustomerID on inbound emails to queue

Post by jojo »

PostMaster Filter for Inbound and GenericAgent for existing tickets
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: CustomerID on inbound emails to queue

Post by crythias »

generic agent. Apply filter. set customerID.

A fun query:

Code: Select all

select distinct concat("bin/otrs.AddCustomerUser.pl ", customer_user_id) from ticket where customer_user_id is not null and not (customer_user_id = "")
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
Locked