CreateContactFromClient 404 Error

chani

Platinum Partner
Joined
Jul 10, 2024
Messages
9
Reaction score
2
Hi, I created a custom template a few months ago and got the create contact scenario running just fine. It hasn't been used other than when I had initially tested it until recently, where it is now erroring out even though the contact has been successfully created in the CRM.

I have taken the exact endpoint of the request 3CX is sending out from the logs and tested it in postman, which returns the record in question, no issue. Even when I am searching for leads that are not in the CRM, I do not get a 404 error from the endpoint (I get 200 OK). I contacted the support of the CRM regarding the issue and they can't seem to recreate the error either, which leads me to wonder if this is an issue on 3CX? Perhaps I am doing something wrong with the template?

This is the log for the create contact scenario:

1735876460244.png

As you can see, the contact is successfully created, but the second scenario that is supposed to retrieve the data is erroring out.

As for the scenario that is causing the error:
1735877212687.png

Any help or advice would be highly appreciated! :)
 
Remove the RequestContentType from the Request element, and change the RequestEncoding to "UrlEncoded".

You're using a POST request as a GET scenario. That will cause a 404 on the CRM side as you're sending an empty JSON body to an endpoint expecting a regular GET query.
 
Remove the RequestContentType from the Request element, and change the RequestEncoding to "UrlEncoded".

You're using a POST request as a GET scenario. That will cause a 404 on the CRM side as you're sending an empty JSON body to an endpoint expecting a regular GET query.

Sorry for the late reply. I have tried these changes and the error seems to still persist unfortunately. I still get the same 404 message.

1736380063404.png
 
Check the 3cxManagementConsole log in verbose to see if there's the error for the creation.
 
Check the 3cxManagementConsole log in verbose to see if there's the error for the creation.
Yep, the contact is being created successfully in the logs. It still seems to be the GetLeadById scenario that is called right after that is still giving me issues.
 

Latest Posts

Forum statistics

Threads
111,973
Messages
590,075
Members
164,895
Latest member
jasonkkrause