Kernel::System::ProcessManagement::Modules::CustomerUserDataPull

NAME

Kernel::System::ProcessManagement::Modules::CustomerUserDataPull – A module to pull data from customer user map into current ticket.

DESCRIPTION

All CustomerUserDataPull functions.

PUBLIC INTERFACE

new()

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

    my $CustomerUserDataPullObject = $Kernel::OM->Get(
        'Kernel::System::ProcessManagement::Modules::CustomerUserDataPull'
    );

Run()

    Run Data

    my $Success = $CustomerUserDataPullObject->Run(
        UserID                          => 123,
        Ticket                          => \%Ticket,   # required
        ProcessEntityID                 => 'P123',
        ActivityEntityID                => 'A123',
        SequenceFlowEntityID            => 'T123',
        SequenceFlowActionEntityID      => 'TA123',
        Config => {

            ConfigSearchKeyValueList {
                UserLogin     => 'example*',                                            # (optional)
                UserFirstname => 'Firstn*',                                             # (optional)

                # special parameters
                CustomerCompanySearchCustomerIDs => 'example.com,'otrs.com',            # (optional)
                ExcludeUserLogins                => 'example,doejohn',                  # (optional)

                # array parameters are used with logical OR operator (all values are possible which
                are defined in the config selection hash for the field)
                UserCountry => 'Austria,Germany',                                       # (optional)

                # DynamicFields (optional) as single or comma separated values.
                DynamicField_FieldNameA => 'Empty=1',
                DynamicField_FieldNameB => 'Equals=123,456',
                DynamicField_FieldNameC => 'Like=value*',
                DynamicField_FieldNameD => 'GreaterThan=2001-01-01 01:01:01',
                DynamicField_FieldNameE => 'GreaterThanEquals=2001-01-01 01:01:01',
                DynamicField_FieldNameF => 'SmallerThan=2002-02-02 02:02:02',
                DynamicField_FieldNameG => 'SmallerThanEquals=2002-02-02 02:02:02',

                OrderBy => 'UserLogin,UserCustomerID',                                  # (optional)
                # default: 'UserLogin'
                # (all search fields possible which are defined in CustomerUserSearchFields)

                # Additional information for OrderBy:
                # The OrderByDirection can be specified for each OrderBy attribute.
                # The pairing is made by the array indices.

                OrderByDirection => 'Down,Up',                                          # (optional)
                # (Down | Up) Default: 'Down'

                Limit => 100,                                                           # (optional)
            },

            ConfigDropdown => {
                Behavior => 'NoCopy',       #  'NoCopy', 'CopyFirstData' or 'CopyLastData' only
            },

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

            # Value set:
            #   * Key is the attribute of the process ticket where the data will be set
            #   * Value is the value to be set, supporting smart tags <OTRS_CUSTOMER_DATA_*> from the resulting customer user
            #     after match and behavior filters e.g.
            #
            #   Example:
            #   * To set process ticket title to be exactly the linked customer user login:
            #     Title => '<OTRS_CUSTOMER_DATA_UserLogin>',
            #   * To set the process ticket dynamic field NameX to an static value (not real pull):
            #     DynamicField_NameX => 'someValue',
        }
    );

    - `Ticket` contains the result of TicketGet including DynamicFields.
Scroll to Top