Search&Define real customerId from sent e-mails

Moderator: crythias

Locked
gmoraes
Znuny newbie
Posts: 3
Joined: 02 Dec 2011, 15:06
Znuny Version: 3.0.11
Real Name: Gian
Company: OSG

Search&Define real customerId from sent e-mails

Post by gmoraes »

Hi!

All the clients of my company are get automatically by 3 different Active Directory and I changed it to set the CustomerID by a field from the ad (client's section) and not his e-mail.

So, for example, my customer name is "Gian", my email is "gmoraes@domain" and my customer Id is "2511"

But, when I create a ticket by sending e-mail it sets my customerId to my e-mail "gmoraes@domain"

I need to make it search for the client on the database by the e-mail to get the real customer Id and set it, but I have no idea how to do it / if it's possible.

Any ideas? Thank you!
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Search&Define real customerId from sent e-mails

Post by crythias »

The customerID is assigned by email default if the customerID can't be determined from looking up the username from the email address of the sender.

The key is to determine what the user identification is relative to your active directory profiles.

Or, more to the point, if you zoomed the ticket created by email, and chose "Customer" and assigned the "real" customer to it, what is the difference in username versus the email's username. Whatever it is, if it can be determined from the email address, then a better match needs to be made in Config.pm what the login is.
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
gmoraes
Znuny newbie
Posts: 3
Joined: 02 Dec 2011, 15:06
Znuny Version: 3.0.11
Real Name: Gian
Company: OSG

Re: Search&Define real customerId from sent e-mails

Post by gmoraes »

The value of CustomerUserPostMasterSearchFields was wrong... it was searching for "Office"! Changed it to "mail" and now it's working.

Thank you crythias!!
Locked