DynamicFieldFromCustomerUser doesn't work on Mail account

Moderator: crythias

Locked
JhonTitor
Znuny newbie
Posts: 6
Joined: 09 Jan 2017, 12:16
Znuny Version: otrs 5.0.13

 DynamicFieldFromCustomerUser doesn't work on Mail account

Post by JhonTitor »

Hello,

English is not my native language so sorry if it's not really good.

I am using OTRS Version: 5
I am using OS: Debian
I am using Database: PostgreSQL

We actually try otrs 5 in my company.
We have connect otrs on a LDAP backend to authenticate customers when he sends a question.

I use « DynamicFieldFromCustomerUser » for store ldap data in dynamic fields.

With « Ticket::EventModulePost###950-DynamicFieldFromCustomerUser » specify for the events: « TicketCreate|TicketCustomerUpdate|TicketQueueUpdate ».

When I create a ticket based on a web interface: “New email ticket”, the ticket is created and dynamics fields store the ldap data.

But when I create a ticket with an imap accounts the ticket is created, but the dynamic fields are not filled.

Thanks you
root
Administrator
Posts: 4283
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re:  DynamicFieldFromCustomerUser doesn't work on Mail account

Post by root »

Please provide a screenshot or the exact details of the configuration.
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
JhonTitor
Znuny newbie
Posts: 6
Joined: 09 Jan 2017, 12:16
Znuny Version: otrs 5.0.13

Re:  DynamicFieldFromCustomerUser doesn't work on Mail account

Post by JhonTitor »

Thanks for the answer. What is the exact file do you need for the details of the configuration ?
You do not have the required permissions to view the files attached to this post.
root
Administrator
Posts: 4283
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re:  DynamicFieldFromCustomerUser doesn't work on Mail account

Post by root »

When an email was created via e-mail does the ticket zoom show all customer details? If not you should check the value for CustomerUserPostMasterSearchFields?

I don't see the need to change the default events on the EventModule. The module needs only to be called when a CustomerUser is assigned. This happens during ticket creation or by explicit assignment. First of all I would reset the SysConfig option and only enable the module.

Do you have all dynamic fields created which are defined in your mapping?
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
JhonTitor
Znuny newbie
Posts: 6
Joined: 09 Jan 2017, 12:16
Znuny Version: otrs 5.0.13

Re:  DynamicFieldFromCustomerUser doesn't work on Mail account

Post by JhonTitor »

Yes, when an email was created via e-mail he show all customer details and all dynamic fields are defined in my mapping.
root
Administrator
Posts: 4283
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re:  DynamicFieldFromCustomerUser doesn't work on Mail account

Post by root »

Your Event looks different to the default one - which always should fit. In yours I'm missing the () around the value. I suggest to try the default one:

Code: Select all

(TicketCreate|TicketCustomerUpdate)
Other events shouldn't be needed
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
JhonTitor
Znuny newbie
Posts: 6
Joined: 09 Jan 2017, 12:16
Znuny Version: otrs 5.0.13

Re:  DynamicFieldFromCustomerUser doesn't work on Mail account

Post by JhonTitor »

I reset sysConfig and try with default values, don't resolve the problem.

I think the problem is when a ticket is created by an email, the module "Kernel::System::Ticket::Event::DynamicFieldFromCustomerUser" is not called but i don't understand why.
root
Administrator
Posts: 4283
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re:  DynamicFieldFromCustomerUser doesn't work on Mail account

Post by root »

TicketCreate is triggered each time a new ticket is created.
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
root
Administrator
Posts: 4283
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re:  DynamicFieldFromCustomerUser doesn't work on Mail account

Post by root »

One more question: are there any entries in the otrs log?
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
JhonTitor
Znuny newbie
Posts: 6
Joined: 09 Jan 2017, 12:16
Znuny Version: otrs 5.0.13

Re:  DynamicFieldFromCustomerUser doesn't work on Mail account

Post by JhonTitor »

In the otrs log i have nothing about that.
JhonTitor
Znuny newbie
Posts: 6
Joined: 09 Jan 2017, 12:16
Znuny Version: otrs 5.0.13

Re:  DynamicFieldFromCustomerUser doesn't work on Mail account

Post by JhonTitor »

Problem resolved,

I don't know exactly why, but I update to otrs 5.0.15 and clean the configuration and now is working.
Locked