How to update Update Customer User using RPC.pl

Moderator: crythias

Post Reply
raydmaxeeman
Znuny newbie
Posts: 2
Joined: 27 Jun 2018, 12:29
Znuny Version: version 5.0
Real Name: Ray Dimaculangan

How to update Update Customer User using RPC.pl

Post by raydmaxeeman »

hello! im new to OTRS and PERL Programming and im currently working on updating Customer Users using rpc.pl unfortunately my code is not working

im using this link as a reference -> https://iniy.org/?p=20&cpage=1

the code works on creating tickets but when i try to apply the process of updating users using this method:

$CustomerUserObject->CustomerUserUpdate(
Source => 'CustomerUser', # CustomerUser source config
ID => 'mh', # current user login
UserLogin => 'mhuber', # new user login
UserFirstname => 'Huber',
UserLastname => 'Manfred',
UserPassword => 'some-pass', # not required
UserEmail => 'email@example.com',
ValidID => 1,
UserID => 123,
);

my aim is to creat an api that will update the customer users

i have read about Generic Interface but unfortunately im new to perl programming. and i do not know how it works can you please suggest some tutorials that might help me?
Post Reply