Hi,
I want to update the OTRS CustomerUser with the users of a portal and
don't want to "link" directly OTRS to the portal database to look for
customerusers.
I'm writting a PERL script to do it, using the functions in:
~otrs/Kernel/System/CustomerUser.pm
There it is said that:
-------------------extract-------------------
=item CustomerUserUpdate()
to update customer users
$CustomerUserObject->CustomerUserUpdate(
Source => 'CustomerUser', # CustomerUser source config
UserLogin => 'mhuber',
UserFirstname => 'Huber',
UserLastname => 'Manfred',
UserPassword => 'some-pass', # not required
UserEmail => '[EMAIL PROTECTED]',
ValidID => 1,
UserID => 123,
);
=cut
---------------end of extract---------------
I'm having problems. My testing is the following, I do create a dummy
CustomerUser withe the function with function CustomerUserAdd() (with
the same parameter from the example in the coments of the
CustomerUser.pm file) and then I'm trying to update with the above
function is not working.
I'm geting en error saying:
--------------------- log ----------------
ERROR: ?LogPrefix?-99 Perl: 5.8.5 OS: linux Time: Wed Jun 20 13:32:28 2007
Message: Need UserCustomerID!
Traceback (25134):
Module: Kernel::System::CustomerUser::DB::CustomerUserUpdate
(v1.42.2.1) Line: 405
Module: Kernel::System::CustomerUser::CustomerUserUpdate (v1.28)
Line: 329
Module: prueba.pl (v1.0) Line: 69
------------------- end log ----------------
Can someone put a bit of light? One of my doubts is also what the
developper is refering with "Source => 'CustomerUser'". do I have to
change that? Or is there a bug?
Thanks,
Rafa
PS:
_______________________________________________
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
Support or consulting for your OTRS system?
=> http://www.otrs.com/