How to put additional attribute/field in Customer User

Moderator: crythias

Locked
graychev
Znuny newbie
Posts: 19
Joined: 19 Jan 2021, 18:19
Znuny Version: 6 CE
Real Name: Georgi Raychev

How to put additional attribute/field in Customer User

Post by graychev »

Hello,

Please for some help.
I am using OTRS 6 CE.

Up so far we are using almost the default settings in the system, for creating tickets, agents and customers.

I need to add one or more additional attributes/fields in Customer User, so when an agent creates new Customer User, to be able to put some more info.

I tried Dynamic Fields, by creating new text field in Customer user, but I cannot activate it or map in from the sysconfig.

I have read that I have also to change some settings in the below 2 settings, but still I cannot do it:
DynamicFieldFromCustomerUser::Mapping
Ticket::EventModulePost###4100-DynamicFieldFromCustomerUser

I have managed to add dynamic filed in the different part of the ticket - when creating, owner change etc., but cannot show it in the Customer User.

Probably I am missing something.

Please for your advise.

Thank you in advance.

Best regards,
Georgi
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: How to put additional attribute/field in Customer User

Post by reneeb »

You have to add the dynamic fields to the mapping in Kernel/Config.pm. To do that, you have to copy the default settings from Kernel/Config/Defaults.pm to Kernel/Config.pm (if you haven't done it already, e.g. because you are using LDAP/AD as a customer user source). Search for "$Self->{CustomerUser}" and copy everything from that line till the "};" (https://github.com/znuny/Znuny/blob/rel ... s.pm#L1450 to https://github.com/znuny/Znuny/blob/rel ... s.pm#L1559).

There you'll see the "Map". In that map, you have to enable the Dynamic Fields. There is one example that you can use.
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
graychev
Znuny newbie
Posts: 19
Joined: 19 Jan 2021, 18:19
Znuny Version: 6 CE
Real Name: Georgi Raychev

Re: How to put additional attribute/field in Customer User

Post by graychev »

Thank you for the feedback.

I will try it on my test server, before doing it on the live one :).

Regards,
Georgi
Locked