mapping CustomerUser data and CustomerCompany

Moderator: crythias

Locked
machadoa
Znuny advanced
Posts: 101
Joined: 11 Dec 2015, 17:36
Znuny Version: 5.0.5

mapping CustomerUser data and CustomerCompany

Post by machadoa »

Hello

I want to automatically complete a field based on the CustomerID defined for CustomerCompany when I created a new Customer User

For example :
I Create a CustomerCompany with the ID : 007
The information about the City of CustomerCompany(id : 007) is : London

If I create a new CustomerUser, when I choose the CustomerID corresponding to id "007" , the field city automatically complete with the city : London.

It's possible to do this ?

Thanks
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: mapping CustomerUser data and CustomerCompany

Post by reneeb »

This needs development... But why do you want that? If your customer user belongs to a customer, the customer information shows the company data...
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
machadoa
Znuny advanced
Posts: 101
Joined: 11 Dec 2015, 17:36
Znuny Version: 5.0.5

Re: mapping CustomerUser data and CustomerCompany

Post by machadoa »

Ok thanks :/

I've created a field named "outsourced" for the CustomerCompany ( in this field I can choose to write : yes or no).

And I've created a field named "outsourced" for the CustomerUser and I want this field automatically completed based on CustomerID.
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: mapping CustomerUser data and CustomerCompany

Post by jojo »

makes no sense, the data of the company is already displayed on the customers data, why duplicate the information?
"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
machadoa
Znuny advanced
Posts: 101
Joined: 11 Dec 2015, 17:36
Znuny Version: 5.0.5

Re: mapping CustomerUser data and CustomerCompany

Post by machadoa »

Because as I told you I have created a new field named "outsourced" in CustomerCompany and in CustomerUser I wanted depending on the CustomerID automatically fill in the "outsourced" field so that later I could get this value in a dynamic field to open a ticket, but I just find another way I managed to get the value in my dynamic field directly from the information in my CustomerCompany

This topic is infact linked to another topic that is on the following link:

viewtopic.php?f=62&t=31674
Locked