We recently uploaded our app onto market place for CTI between Freshdesk and our Call Center Application.
When a call comes in to our Call Center, using the CTI Marketplace App we are able to push the data to Freshdesk to view and create ticket. We are able to view the information but getting a message, “Error: Failed to create Ticket”
And upon inspecting the element on the website, It says validation failed and states missing contact field:
description: “Validation failed”
errors: Array(2)
0: {field: ‘custom_fields.cf_contact_no’, message: ‘It should be a/an String’, code: ‘missing_field’}
1: {field: ‘responder_id’, message: ‘It should be a/an Positive Integer’, code: ‘missing_field’}
This first error seems like that there exists some mandatory custom fields in the ticket structure, which obviously your app will have no knowledge about and it will fail to fill its value while creating a ticket. You might need to check their account regarding what custom ticket fields they have created and how you can set some value for it through your app , then move forward accordingly.
Connecting incoming fields to ticket fields depends on your application workflow. But still, if it’s a marketplace, we didn’t aware of the customer instance mandatory field details. So it is better in setting the page to get default values for all the mandatory fields in the customer instance. This default value will be used in during ticket creation/update.
Managed to get the issue sorted out, there were some field in the ticket field set as “required”, by un checking this fields, the auto generation of ticket worked.
If it’s a custom app, unchecking mandatory fields/hardcoding ticket fields value will work. We suggest having a separate Mandatory Ticket Fields Tab on the setting page for the Marketplace Application