Ich habe das untenstehende in der SysConfig eingetragen, falls Du das meinst. Aber
habe ich nicht, davon stand im Handbuch nix... Wo muss das denn hin?
Code: Select all
$Self->{CustomerCompany} = {
Name => 'Microsoft CRM',
Module => 'Kernel::System::CustomerCompany::DB',
Params => {
DSN => 'DBI:Sybase:server=QUIPSY5;database=QUIPSY_MSCRM',
User => 'QUIPSY\Administrator',
Password => 'Lp59fw92ui',
Table => 'Account',
ForeignDB => 1, # set this to 1 if your table does not have create_time, create_by, change_time and change_by fields
SourceCharset => 'iso-8859-1',
DestCharset => 'utf-8',
CaseSensitive => 0,
ReadOnly => 1,
},
# company unique id
CustomerCompanyKey => 'AccountId',
CustomerCompanyValid => 'StateCode',
CustomerCompanyListFields => [ 'AccountId', 'name' ],
CustomerCompanySearchFields => [ 'AccountId', 'name' ],
CustomerCompanySearchPrefix => '',
CustomerCompanySearchSuffix => '*',
CustomerCompanySearchListLimit => 250,
CacheTTL => 60 * 60 * 24,
ReadOnly => 1,
Map => [
# var, frontend, storage, shown (1=always,2=lite), required, storage-type, http-link, readonly
[ 'CustomerID', 'CustomerID', 'AccountId', 0, 1, 'var', '', 1 ],
[ 'CustomerCompanyName', 'Customer', 'name', 1, 1, 'var', '', 1 ],
[ 'CustomerCompanyStreet', 'Street', 'Address1_Line1', 1, 0, 'var', '', 1 ],
[ 'CustomerCompanyZIP', 'Zip', 'Address1_PostalCode', 1, 0, 'var', '', 1 ],
[ 'CustomerCompanyCity', 'City', 'Address1_City', 1, 0, 'var', '', 1 ],
[ 'CustomerCompanyCountry', 'Country', 'Address1_Country', 1, 0, 'var', '', 1 ],
[ 'CustomerCompanyURL', 'URL', 'WebSiteURL', 1, 0, 'var', '$Data{"CustomerCompanyURL"}', 1 ],
# [ 'CustomerCompanyComment', 'Comment', 'comments', 1, 0, 'var', '', 1 ],
[ 'ValidID', 'Valid', 'StatusCode', 0, 1, 'int', '', 1 ],
],
};