- Joined
- Jul 23, 2016
- Messages
- 23
- Reaction score
- 0
Hi,
I am doing some testing for CRM Integration, with the following options.
Select a CRM Solution : Database MsSQL
QueryCRM: Always
Server: MySQLServer\Instance
Database: 3c
ata
UserName: SQLUsername
Password: SQLPassword
Lookup SQL Statement:
ContactURL Prefix: Nothing
ContactURL Suffix: Nothing
Enabled Call Journaling: Yes
Call Journaling SQL Statement:
Enable contact creation: Yes
Contact creation SQL statement:
It does create the contact as soon as the call is received, which is fine, but then does not create the call record.
Can you please help?
I am doing some testing for CRM Integration, with the following options.
Select a CRM Solution : Database MsSQL
QueryCRM: Always
Server: MySQLServer\Instance
Database: 3c
UserName: SQLUsername
Password: SQLPassword
Lookup SQL Statement:
SQL:
SELECT contactid, firstname, lastname, email, phonebusiness, phonemobile, faxbusiness FROM contacts WHERE phonebusiness LIKE '%[Number]%' or phonemobile like '%[Number]%' or faxbusiness LIKE '%[Number]%'
ContactURL Prefix: Nothing
ContactURL Suffix: Nothing
Enabled Call Journaling: Yes
Call Journaling SQL Statement:
Code:
INSERT INTO [dbo].[calls2]([CallType],[ContactNumber],[Agent],[Duration],[DurationTimeSpan],[CallStartTimeLocal],[CallStartTimeUTC],[CallEndTimeLocal],[CallEndTimeUTC],[DateTime])VALUES('[CallType]','[Number]','[Agent]','[Duration]','[DurationTimeSpan]','[CallStartTimeLocal]','[CallStartTimeUTC]','[CallEndTimeLocal]','[CallEndTimeUTC]','[DateTime]')
Enable contact creation: Yes
Contact creation SQL statement:
Code:
INSERT INTO contacts (firstname, lastname, phonebusiness ) VALUES ('New', '3CX Contact', '[Number]');SELECT contactid, firstname, lastname, phonebusiness FROM contacts WHERE phonebusiness = '[Number]'
It does create the contact as soon as the call is received, which is fine, but then does not create the call record.
Can you please help?