Versionen im Vergleich

Schlüssel

  • Diese Zeile wurde hinzugefügt.
  • Diese Zeile wurde entfernt.
  • Formatierung wurde geändert.

Inhalt

XSetUps

GroupIdentifierValuelocal/globalNotes/Explanation
cpsenabled1globalenables CPS-Provider dialogue in System Data
cpsgha_external_merge_enabled1global

This XSetup enables the SQL Queries used when creating the Match & Merge schema needed for the CRM delivering merge decisions (CPS Provider).

Configuration in System Data

CPS Provider Creation

Image Added

Image Added

FieldComment
Name

Must hold the value the CRM system will provide in the OTA_ProfileMergeRQ message (Instance).

Image Added

'Manuelle Bearbeitung aktivieren'

= 'activate manual changes'

→ in case it is not ticked, the user is not allowed influencing on the decisions imported by the CRM system by using the buttons in the Match & Merge dialogue

Image Added

Configuration in Front Office

Creation of Merge Schema

Open the Guest Profile SQL Queries dialogue:

Image Added

Create the new schema to be used for the CRM merge decisions (select the correct CPS Provider):

Image Added

All SQL Queries will be edited to hold the correct values incl. the providerid automatically:

Image Added

Codeblock
languagesql
titleShow duplicate profiles
collapsetrue
SELECT kdnr, kdnr AS 'Account', name1 AS 'Name', resname+' '+resvorn+' '+resanr AS 'Contact', vorname AS 'First Name', strasse AS 'Street', plz AS 'ZIP', ort AS 'City', erfasst+' '+erfassttim AS 'Created', erfasstusr AS 'Net user', telefonnr AS 'Phone',
(SELECT COUNT(leistacc) FROM buch WHERE kundennr=kdnr OR firmennr=kdnr OR reisenr=kdnr OR sourcenr=kdnr) AS 'Act. res.',
(SELECT COUNT(buchnr) FROM buchold WHERE kundennr=kdnr OR firmennr=kdnr OR reisenr=kdnr OR sourcenr=kdnr) AS 'Res. history',
(SELECT COUNT(ref) FROM tasks WHERE kundennr=kdnr) AS 'Sales activities', 
bemerkung AS 'Remarks' 
FROM kunden AS K 
WHERE kdnr={AccountNo} 
UNION 
SELECT kdnr, kdnr AS 'Account', name1 AS 'Name', resname+' '+resvorn+' '+resanr AS 'Contact', vorname AS 'First Name', strasse AS 'Street', plz AS 'ZIP', ort AS 'City', erfasst+' '+erfassttim AS 'Created', erfasstusr AS 'Net user', telefonnr AS 'Phone',
(SELECT COUNT(leistacc) FROM buch WHERE kundennr=kdnr OR firmennr=kdnr OR reisenr=kdnr OR sourcenr=kdnr) AS 'Act. res.',
(SELECT COUNT(buchnr) FROM buchold WHERE kundennr=kdnr OR firmennr=kdnr OR reisenr=kdnr OR sourcenr=kdnr) AS 'Res. history',
(SELECT COUNT(ref) FROM tasks WHERE kundennr=kdnr) AS 'Sales activities',
bemerkung AS 'Remarks' 
FROM kunden AS K INNER JOIN cpsprofilemerge AS G ON K.kdnr=G.mergeid AND G.validid={AccountNo} AND G.providerid=1;

Image Added

Codeblock
languagesql
titleEvaluate duplicates for all profiles
collapsetrue
SELECT MIN(kdnr) AS 'Min', COUNT(kdnr)+1 AS 'Occurs', name1 AS 'Name1', name2 AS 'Name2', resname AS 'Contact', vorname AS 'First Name', strasse AS 'Street', plz AS 'ZIP' 
FROM kunden AS K INNER JOIN cpsprofilemerge AS G ON K.kdnr=G.validid AND G.providerid=1 
WHERE kdnr IN(SELECT validid FROM cpsprofilemerge) 
GROUP BY name1, name2, resname, vorname, strasse, plz

Image Added

Codeblock
languagesql
titleEvaluate duplicates for a single profile
collapsetrue
SELECT MIN(kdnr) AS 'Min', COUNT(kdnr)+1 AS 'Occurs', name1 AS 'Name1', name2 AS 'Name2', resname AS 'Contact', vorname AS 'First Name', strasse AS 'Street', plz AS 'ZIP' 
FROM kunden AS K INNER JOIN cpsprofilemerge AS G ON K.kdnr=G.validid AND G.validid={AccountNo} AND G.providerId=1
GROUP BY name1, name2, resname, vorname, strasse, plz

Outcome in FO / Match & Merge dialogue

The user will be notified via IFC Error in case there are new profile merge decisions imported:

Image Added

The user needs to open the Match & Merge screen then and has the possibility to merge the profiles (could be more than 2) or edit the profiles from there:

Image Added

Image Added