Kernel::System::CustomerUser -> CustomerIDs() ?

Hello, How to get CustomerIDs from a customer ? I thought it was sommething like : $Self->{CustomerUserObject} = Kernel::System::CustomerUser->new(%Param); ... my @CustomerIDs = $Self->{CustomerUserObject}->CustomerIDs( User => 'bernard.chambon@cc.in2p3.fr', ); but, after setting CustomerIDs to MY_COMPANY for this customer (Username='bernard.chambon@cc.in2p3.fr') This code doesn't get this value (MY_COMPANY) but something that looks like the id (bernard.chambon@cc.in2p3.fr) Do I miss something ? Do I have to retrieve CustomerIDs from DB ? I did it , it's ok. Best regards ps : mysql> select customer_id, customer_ids from customer_user where customer_id = 'bernard.chambon@cc.in2p3.fr' ; +-----------------------------+--------------+ | customer_id | customer_ids | +-----------------------------+--------------+ | bernard.chambon@cc.in2p3.fr | MY_COMPANY | +-----------------------------+--------------+ --------------- Bernard CHAMBON IN2P3 / CNRS 04 72 69 42 18

Hi Bernard,
I think it is more a topic for the dev@ list, really...
Did you add the CustomerIDs field in the customer datasource mapping?
--
Mike
On Wed, Jul 4, 2012 at 10:21 AM, Bernard Chambon
Hello,
How to get CustomerIDs from a customer ?
I thought it was sommething like :
$Self->{CustomerUserObject} = Kernel::System::CustomerUser->new(%Param); ... my @CustomerIDs = $Self->{CustomerUserObject}->CustomerIDs( User => 'bernard.chambon@cc.in2p3.fr', );
but, after setting CustomerIDs to MY_COMPANY for this customer (Username='bernard.chambon@cc.in2p3.fr') This code doesn't get this value (MY_COMPANY) but something that looks like the id (bernard.chambon@cc.in2p3.fr)
Do I miss something ?
Do I have to retrieve CustomerIDs from DB ? I did it , it's ok.
Best regards
ps : mysql> select customer_id, customer_ids from customer_user where customer_id = 'bernard.chambon@cc.in2p3.fr' ; +-----------------------------+--------------+ | customer_id | customer_ids | +-----------------------------+--------------+ | bernard.chambon@cc.in2p3.fr | MY_COMPANY | +-----------------------------+--------------+
--------------- Bernard CHAMBON IN2P3 / CNRS 04 72 69 42 18
--------------------------------------------------------------------- OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs

Hi, Le 4 juil. 2012 à 10:27, Michiel Beijen a écrit :
Did you add the CustomerIDs field in the customer datasource mapping?
Not sure to understand, sorry the only config, I have done with UserCustomerIDs, is in Config.pm to match row with DB I mean $Self->{CustomerUser} = { ... [ 'UserCustomerIDs', 'CustomerIDs', 'customer_ids', 1, 0, 'var', '', 0 ], Best regards --------------- Bernard CHAMBON IN2P3 / CNRS 04 72 69 42 18
participants (2)
-
Bernard Chambon
-
Michiel Beijen