NAME
Kernel::GenericInterface::Operation::CustomerCompany::CustomerCompanyCreate – GenericInterface CustomerCompanyCreate Operation backend
_Run()
Add a new 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 unique ID string
CustomerCompanyName => 'Some Company Name', # required unique Name
CustomerCompanyCountry => 'Germany', # optional
CustomerCompanyStreet => 'Untermainkai St.', # optional
CustomerCompanyCity => 'Frankfurt', # optional
CustomerCompanyZIP => '54321', # optional
CustomerCompanyURL' => 'http://company-url.org', # optional
CustomerCompanyComment => 'some text comment', # optional
Source => 'SomeSource', # optional; default: 'CustomerCompany'
ValidID => 1, # required; 1, 2 or 3
DynamicField => [ # optional
{
Name => 'DFname',
Value => 'DF value',
},
# ...
],
},
);
$Result = {
Success => 1, # 0 or 1
ErrorMessage => '', # in case of error
Data => {
CustomerID => 'some-company-id',
CustomerCompany => {
CustomerID => 'some-company-id',
CustomerCompanyName => 'Some Company Name',
CustomerCompanyComment => 'some comment'
CustomerCompanyCountry => 'Germany',
CustomerCompanyStreet => 'some street name',
CustomerCompanyCity => 'Frankfurt',
CustomerCompanyZIP => '12345',
CustomerCompanyURL' => 'http://www.some-company.org',
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',
},
},
};