Hello,

        I`ve made the modification and now i have the required field as 
well for the telephone number. I`m afraid that i maybe i wasn`t clear 
enough about the issue :-).
        The screen where i want the information displayed is in the ticket 
details.

        So when an agent checks a tickets` detail i want the phone number 
of the customer that posted the ticket, displayed ( bottom right ).

Regards,

Paul Andurnache 




Rory <rcler...@gmail.com> 
Sent by: otrs-boun...@otrs.org
26.09.2011 13:13
Please respond to
"User questions and discussions about OTRS." <otrs@otrs.org>


To
"User questions and discussions about OTRS." <otrs@otrs.org>
cc

Subject
Re: [otrs] Add details to customer fields






Try adding the following at the end of your customer config (I have
this in mine as well as the 'AuthSyncModule' section). The part you
are most interested in is the "Map" near the end.
Separate the items in the map using tabs to make it easier to read.
Take note of the 4th and 5th columns which are "shown" and "required".
Its the usual 1=True and 0=False

As I understand it this section of code is used when an agent is
looking up the details of a customer. The other section
"AuthSyncModule" is used when the customer is logging in to the
customer frontend.

        $Self->{CustomerUser} = {
                Name => 'LDAP Datasource',
                Module => 'Kernel::System::CustomerUser::LDAP',
                Params => {
                        Host => 'server.myDomain.local',
                        BaseDN => 'ou=Users,dc=myDomain,dc=local',
                        SSCOPE => 'sub',
                        UserDN => 'CN=LDAP
Lookup,CN=Users,DC=myDomain,DC=local',
                        UserPw => 'LookupPassword',
                        AlwaysFilter => '(objectclass=user)',
                        Params => {
                            port => 389,
                            timeout => 120,
                            async => 0,
                            version => 3,
                         },
                },

        CustomerKey => 'sAMAccountName',
        CustomerID => 'mail',
        CustomerUserListFields => ['sAMAccountName', 'sn', 'cn', 'mail'],
        CustomerUserSearchFields => ['sAMAccountName', 'cn', 'sn', 
'mail'],
        CustomerUserSearchPrefix => '',
        CustomerUserSearchSuffix => '*',
        CustomerUserSearchListLimit => 250,
        CustomerUserPostMasterSearchFields => ['mail'],
        CustomerUserNameFields => ['givenname', 'sn'],
        CustomerUserExcludePrimaryCustomerID => 0,
        AdminSetPreferences => 0,
        Map => [
                        # note: Login, Email and CustomerID needed!
                        # var, frontend, storage, shown, required, 
storage-type
                        [ 'UserSalutation',     'Title',
'title',                1, 0, 'var', '', 0 ],
                        [ 'UserFirstname',      'Firstname',
'givenname',            1, 1, 'var', '', 0 ],
                        [ 'UserLastname',       'Lastname',     'sn',
                 1, 1, 'var', '', 0 ],
                        [ 'UserLogin',          'Login',
'sAMAccountName',       1, 1, 'var', '', 0 ],
                        [ 'UserEmail',          'Email',
'mail',                 1, 1, 'var', '', 0 ],
                        [ 'UserCustomerID',     'CustomerID',
'mail',                 0, 1, 'var', '', 0 ],
                        [ 'UserPhone',          'Phone',
'telephonenumber',      1, 0, 'var', '', 0 ],
                        #[ 'UserAddress',       'Address',
'postaladdress',        1, 0, 'var', '', 0 ],
                        [ 'UserComment',        'Comment',
'description',          1, 0, 'var', '', 0 ],
                ],
        };

I hope that sorts it out for you.

Rory

On 26 September 2011 10:45, <paul.andurna...@aviva.ro> wrote:
>
> I tried to add from the manual the following options but with no changes 
( even if i restarted the server ). Since the mentioned fields weren`t in 
the Config.pm i manually added them at the end of the user configuration 
section.
>
>  [Kernel/Config.pm]
>    # ShowCustomerInfo*
>    # (show customer user info on Compose (Phone and Email), Zoom and 
Queue view)
>    $Self->{ShowCustomerInfoCompose} = 1;
>    $Self->{ShowCustomerInfoZoom} = 1;
>    $Self->{ShowCustomerInfoQueue} = 0;
>    [...]
>
---------------------------------------------------------------------
OTRS mailing list: otrs - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/otrs
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs


Email secured by Check Point

---------------------------------------------------------------------
OTRS mailing list: otrs - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/otrs
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs

Reply via email to