Create ticket api

I have been creating custom Power Automate connectors and I have run into an issue with the Create Ticket connector. The issue is that when I create a ticket with a new requestor, the API will create the ticket. However, if I supply a company_id for the ticket/contact to be associated, I receive an error message stating that contact is not associated with the company. I have a work around, but was interested to seeing why this logic does not work.

Hey @npatel

Welcome to the Freshworks developer community :slight_smile:

As per Freshdesk API documentation, the company_id can be provided only if the contact is associated with multiple companies, please refer to the screenshot below

.

multiple companies for a contact can be enabled by following the steps in the link below.

Seems like a contact is associated with only one company by default, maybe this could the root cause for your issue.

Hope this helps!

Stay safe :slight_smile:

2 Likes