Error while creating call log

Hi Team,
We are facing an error while creating call log from FCRM app.
please find the below request and response


  "method": "post",
  "url": "https://domainname",
  "headers": {
    "authorization": "Token token=<%= iparam.freshworks_crm_api_key %>",
    "content-type": "multipart/form-data;"
  "formData": {
    "phone_call": "{\"call_direction\":\"Outgoing\",\"targetable_type\":\"contact\",\"targetable\":{\"last_name\":\"sdasd\",\"mobile_number\":\"+91xxxxxxx\",\"owner_id\":70000049953},\"note\":{\"description\":\"asdsad\\nCall ID: 7069f15f-1aa1-4c41-9c7c-xxxxxxxx\"},\"number\":\"+91xxxxxxxx\",\"user_id\":70000049953,\"outcome_id\":\"15000006279\"}"
  "json": true


  "status": 422,
  "headers": {
    "date": "Mon, 20 Dec 2021 11:10:07 GMT",
    "content-type": "application/json; charset=utf-8",
    "transfer-encoding": "chunked",
    "connection": "close",
    "status": "422 Unprocessable Entity",
    "vary": "Origin",
    "x-request-id": "12760956-fad1-473e-a526-6b59bd28914e",
    "x-rack-cache": "invalidate, pass",
    "x-envoy-upstream-service-time": "73",
    "x-trace-id": "00-3a87dddaceeef2933ec65a65d0ddf9e7-8df967323a48ad77-00",
    "x-fw-ratelimiting-managed": "false",
    "server": "fwe"
  "response": {
    "error_code": 422
  "errorSource": "APP",
  "attempts": 1

Please help use. we got stuck because of this issue.


Hi @Konanki_Prakash,

Did this API work for you before with any other changes in the URL or the request body properties?

Could you send a simple string in “description” property in the request body and check if that works without any special characters? Also, with “json” property removed?

Hi @Raviraj ,

Yes this API was working before. we didn’t do any changes on that.

I will get this discussed with the relevant team on the issue.

Please contact the Freshsales Suite (Freshworks CRM) support for quick assistance.

1 Like

Hello Everyone,
Any solutions for the above issue?

Hi Konanki,

I am able to see that you are passing an API to add a call log for a new contact. This would mean that Freshsales will first create a new Contact and then relate the call log to it. 422 error is received when the Freshsales server is not able to process this request.

Specifically for your use-case this will happen when you are trying to add a call log to a new contact and the contact creation fails. This will happen when you are either not passing a value for mandatory or unique fields in the Freshsales account or are passing a non-unique value for a unique field.

Example in Freshsales Growth plan accounts, Email and External ID fields are unique by default and so you will have to pass any one of the two values for contact creation. If any one of them is not passed in your API call then it will fail with 422 error.

In higher plans, you can set a field to be unique. In such an account if Mobile field is a unique field and you already have a contact with a particular mobile number then when you try adding a new call log for new contact creation with the same mobile number then it will fail with 422 error as the mobile number field is not unique.

This was also communicated in the below question raised by Knowlarity team,

More details about unique fields can be seen in below link,

@Konanki_Prakash - Did the above solution by @Pulkit_Chowdry helped you make progress?

Hi @Saif ,

Yes, it was helped a bit, it was an issue with plans we are checking that.

Prakash k

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.