NAME
Kernel::GenericInterface::Operation::CustomerCompany::CustomerCompanyUpdate – GenericInterface CustomerCompanyUpdate Operation backend
_Run()
Update an existing Customer (CustomerCompany)
my $Result = $OperationObject->Run(
Data => {
UserLogin => 'some agent login', # UserLogin or AccessToken is required
AccessToken => 123,
Password => 'some password', # if UserLogin is sent then Password is required
CustomerID => 'some-company-id', # required; the CustomerCompany to be updated
CustomerCompanyName => 'New Company Name', # optional unique Name
CustomerCompanyCountry => 'new country', # optional
CustomerCompanyStreet => 'new street', # optional
CustomerCompanyCity => 'new city', # optional
CustomerCompanyZIP => 'new ZIP code', # optional
CustomerCompanyURL' => 'http://new-url.org', # optional
CustomerCompanyComment => 'new text comment', # optional
ValidID => 1, # optional; 1, 2 or 3
DynamicField => [ # optional
{ # - non-existing dynamic fields will be created
Name => 'newDF', # - existing dynamic fields will be updated
Value => 'new DF value',
},
{
Name => 'existDF',
Value => 'new DF value',
},
# ...
],
},
);
$Result = {
Success => 1, # 0 or 1
ErrorMessage => '', # in case of error
Data => {
CustomerID => 'some-company-id',
CustomerCompany => {
CustomerID => 'some-company-id',
CustomerCompanyName => 'New Company Name',
CustomerCompanyCountry => 'new country',
CustomerCompanyStreet => 'new street',
CustomerCompanyCity => 'new city',
CustomerCompanyZIP => 'new ZIP code',
CustomerCompanyURL => 'http://new-url.org',
CustomerCompanyComment => 'new text comment',
CompanyString => 'some-company-id Company Name',
Source => 'CustomerCompany',
ValidID => 1,
CreateTime => '2022-10-13 14:51:07',
CreateBy => 1317,
ChangeBy => 1317,
ChangeTime => '2022-10-13 14:51:07',
DynamicField => [
{ Name => '...', Value => '...' },
{ Name => '...', Value => '...' },
],
},
Error => { # in case of error
ErrorCode => 'ErrorCode',
ErrorMessage => 'Error Description',
},
},
};