CRM Test Tool not displaying any logs

Status
Not open for further replies.

Sam Tape

Free User
Joined
Jun 27, 2024
Messages
4
Reaction score
0
Hi,

I have a unique situation. I am attempting to integrate Netsuite with 3cx using a few restlets, bit of middleware to generate signatures that netsuite accept and so on.

I have detailed up what I think is an adequate xml file but I know something isn't quite right because every forum post I look into, people have these long list of logs directly after their test tools. Mine has nothing. It contains nothing.

I get the default CRM Integration is working OK but contact number does not exist. Check log for more info or try a different number.

I've tried enabling verbose logs also and continually taking a look into the 3cxSystemService.log file, this is all I get though.

2024/06/27 20:52:05.062|10504|0005|Verb|CRM: Not processed. Number=[RedactedNumber], connection=1565, state=Ringing
2024/06/27 20:52:05.062|10504|0005|Verb|CRM: Add to processing. Number=[RedactedNumber], connection=1565, state=Ringing
2024/06/27 20:52:05.062|10504|0005|Info|CRM: ProcessActiveConnections(). Attached entries to connection:
2024/06/27 20:52:05.062|10504|0005|Verb|CRM: LocalMatches=. Number=[RedactedNumber], connection=1565, state=Ringing
2024/06/27 20:52:05.062|10504|0005|Info|CRM: Synchronize(...) called
2024/06/27 20:52:05.063|10504|0036|Info|CRM: maxConcurrency=2
2024/06/27 20:52:05.063|10504|0036|Info|CRM: making request to CRM. Number=[RedactedNumber]
2024/06/27 20:52:05.063|10504|0036|Verb|CRM: Removed from processing. Number=[RedactedNumber]
2024/06/27 20:52:05.063|10504|0036|Info|CRM: processing of [RedactedNumber]has been finished

It never triggers the middleware, yet when I run the middleware through postman the same way it works just fine and returns;

[
{
"id": "78370",
"phone": "[Redacted Phone Number]",
"company": "02171 Test Company Pty Ltd",
"email": "[email protected]",
"firstname": "Sam",
"lastname": "Tape",
"customer_url": "https://workinglinkhere"
}
]

I suspect my issue lies with my xml configuration or some setting with 3CX that isn't triggering the xml file.
I have attached it for your reference, and I am hoping someone can guide me in the right direction.
We are running Professional Annual, using version 18.

Many thanks in advance.

(Please note the system associated is not where this is running)
 

Attachments

We built our own integration proxy for this specific reason lol we get our own logs.
 
We built our own integration proxy for this specific reason lol we get our own logs.
I'd happily forgo seeing the logs if it just worked how it should haha. Is it thing with custom templates that they havent built out the functionality for testing? I presume it would simply run the template and return the response data, not sure what else would have to occur differently from a certified integration to a custom one...
 
I'd happily forgo seeing the logs if it just worked how it should haha. Is it thing with custom templates that they havent built out the functionality for testing? I presume it would simply run the template and return the response data, not sure what else would have to occur differently from a certified integration to a custom one...
The Test button should show the logs in the second tab of the popup.

Otherwise, you need to enable verbose logging to see stuff happen in the 3CXSystemService.log file.
 
The Test button should show the logs in the second tab of the popup.

Otherwise, you need to enable verbose logging to see stuff happen in the 3CXSystemService.log file.
1719489807755.png

This is what I get. Obviously it's the placeholder phone number but on phone numbers I know I have in my CRM this still happens.

Verbose logging only details as specified in the original post, nothing more nothing less.

This is nothing compared to what should be shown, and what I see in a lot of other forum posts.
 
Sounds like the template is not configured properly as it's not running anything when doing the test.
 
The problem is that your template has only 1 scenario with Id="LookupByPhone". Please note that the number lookup scenario must have an empty Id.
 
  • Like
Reactions: Evolute IT
Lifesaver. Thanks edossantos.

Now I have run into an issue where despite setting the request to be json, encoding it as json and running the body in CDATA it still sends as XML (I think).

When I run postman via JSON it returns status 200, but anytime I try to run XML through it it gives me 500 and the data is undefined in the console.

This is my XML setup

<Scenario idType="REST">
<Request Url="[apilink]" MessagePasses="0" RequestEncoding="Json" RequestType="Post" ResponseType="Json">
<Headers>
<Header Name="Content-Type">application/json</Header>
<Header Name="prefer">transient</Header>
</Headers>
<Body>
<![CDATA[
{
"consumerKey": "[ConsumerKey]",
"consumerSecret": "[ConsumerSecret]",
"tokenId": "[TokenId]",
"tokenSecret": "[TokenSecret]",
"phoneNumber": "[Number]",
"accountId": "[AccountId]"
}
]]>
</Body>
</Request>

Any thoughts?
 
Setting the JSON body is not done like that. You need to use the PostValues element and add children elements to build the structure. Check other templates provided by 3CX as a reference, for example the HubSpot template uses this technic.
 
  • Like
Reactions: Evolute IT
Status
Not open for further replies.