NAME
Kernel::GenericInterface::Operation::Service::ServiceList – GenericInterface Service List Operation backend =head1 PUBLIC INTERFACE
Run()
perform either ServiceList or CustomerUserServiceMemberList Operation. Returning the list of services that the user or customer user has access.
my $Result = $OperationObject->Run(
Data => {
UserLogin => 'some agent login', # UserLogin, CustomerUserLogin or AccessToken
# is required
CustomerUserLogin => 'some customer user login',
AccessToken => 123,
Password => 'some password', # if UserLogin or CustomerUserLogin is sent then
# Password is required
ServiceListCustomerUser => 'TestCustomerUserLogin', # (optional) If you use this parameter as an agent,
# or the operation is executed as a customer, then
# the service list is fetched via
# K::S::Service->CustomerUserServiceMemberList,
# restricting the list to those services that the
# customer user has access
},
);
$Result = {
Success => 1, # 0 or 1
ErrorMessage => '', # In case of an error
Data => {
ServiceList => [
{
Key => 34
Value => 'ServiceA',
},
{
Key => 56,
Value => 'ServiceB',
},
{
Key => 886,
Value => 'ServiceC',
},
],
},
};
