TicketCustomerSet

TicketCustomerSet#

NAME#

Kernel::System::ProcessManagement::TransitionAction::TicketCustomerSet - A module to set a new ticket customer

DESCRIPTION#

All TicketCustomerSet functions.

PUBLIC INTERFACE#

new()#

Don’t use the constructor directly, use the ObjectManager instead:

my $TicketCustomerSetObject = $Kernel::OM->Get('Kernel::System::ProcessManagement::TransitionAction::TicketCustomerSet');

Run()#

Runs TransitionAction TicketCustomerSet.

my $Success = $TicketCustomerSetActionObject->Run(
    UserID                   => 123,

    # Ticket contains the result of TicketGet including dynamic fields
    Ticket                   => \%Ticket,   # required
    ProcessEntityID          => 'P123',
    ActivityEntityID         => 'A123',
    TransitionEntityID       => 'T123',
    TransitionActionEntityID => 'TA123',

    # Config is the hash stored in a Process::TransitionAction's config key
    Config                   => {
        CustomerID     => 'client123',
        # or
        CustomerUserID => 'client-user-123',

        #OR (Framework wording)
        No             => 'client123',
        # or
        User           => 'client-user-123',

        UserID => 123,                      # optional, to override the UserID from the logged user
    }
);

Returns:

my $Success = 1; # 0