CRM API integration does not work

Status
Not open for further replies.

kuznecow.mihail

Free User
Joined
Mar 7, 2020
Messages
12
Reaction score
0
Hi, everybody. I'm trying to use CRM API integration with an XML file. During testing, requests are received. And so when the server is running, nothing comes. What could be the problem?
 

Attachments

The tool you use to create the template lets you debug the template, emulating the contact lookup and call reporting. You should check the request and the response shown by the tool during a debug session, so you understand what's going on.

Please paste here screenshots of the request and response (please blur any sensitive data), the mapping to variables, and so on.
 
When contact exists
 

Attachments

  • 1583860617607.png
    1583860617607.png
    77.8 KB · Views: 15
  • 1583860656138.png
    1583860656138.png
    48 KB · Views: 14
  • 1583860673777.png
    1583860673777.png
    58.1 KB · Views: 14
When don't have contact:
Started scenario with empty id
Request text: http://192.168.1.18:81/0/ServiceModel/GreetingService.svc/GetContact?PhoneNumber=512340
Response text: {"GetContactResult":{"businessphone":null,"businessphone2":null,"company":null,"customvalue":null,"email":null,"firstname":null,"id":0,"lastname":null,"mobilephone":null,"mobilephone2":null,"url":null}}
Response finished
Variable ContactID set to 0
Variable FirstName set to
Variable LastName set to
Variable CompanyName set to
Variable Email set to
Variable PhoneBusiness set to
Variable PhoneBusiness2 set to
Variable PhoneMobile set to
Variable PhoneMobile2 set to
Variable CustomValue set to
Variable ContactUrl set to
Finished scenario with empty id
Started CreateContactRecord
Request text: http://192.168.1.18:81/0/ServiceModel/GreetingService.svc/CreateContact
Request message: {"firstname":"New","lastname":"3CX Contact 555-12340","Phone":"555-12340"}
Response text: {"CreateContactResult":{"businessphone":null,"businessphone2":null,"company":null,"customvalue":null,"email":null,"firstname":"New ","id":0,"lastname":null,"mobilephone":"555-12340","mobilephone2":"555-12340","url":null}}
Response finished
Variable ContactID set to 0
Variable FirstName set to New
Variable LastName set to
Variable CompanyName set to
Variable Email set to
Variable PhoneBusiness set to
Variable PhoneBusiness2 set to
Variable PhoneMobile set to 555-12340
Variable PhoneMobile2 set to 555-12340
Variable CustomValue set to
Variable ContactUrl set to
Finished CreateContactRecord
Result obtained
 

Attachments

  • 1583861167390.png
    1583861167390.png
    34 KB · Views: 7
It seems to be working fine. The existing contact is retrieved, and when it's not found a new contact is created. What's not working as expected?
 
This is working test. But when I call, no request comes to the CRM system.
 
There is also a request to keep a call log . Also nothing comes to the system
 
Are you calling from an external number? Only calls from or to external numbers trigger the CRM engine.

In order to troubleshoot this, you should enable verbose logs from the 3CX Console > Dashboard > Activity Log > Settings, then make a test call reproducing the issue, and finally check the 3cxSystemService.log file.
 
I don't see Activity Log
 

Attachments

  • 1583927662734.png
    1583927662734.png
    129 KB · Views: 3
I'm calling an internal 3CX number
 
I understand that when a call is made, a request is sent to the CRM system to search for and create a contact. after the end of the call, a post request should come to the system with a description of the call. But not a single request does not come
 
You need to call from an external line for this to happen. If you make a call between 2 extensions, the CRM engine is not triggered.
 
If you call from that number, the CRM engine should work.

As mentioned before, in order to troubleshoot this, you should enable verbose logs from the 3CX Console > Dashboard > Activity Log > Settings, then make a test call reproducing the issue, and finally check the 3cxSystemService.log file.
 
Status
Not open for further replies.

Forum statistics

Threads
112,325
Messages
591,898
Members
165,479
Latest member
Senergia