Skip to main content

I am attempting to set up a Webhook Freshdesk automation to PUT ticket data into my CRM. I need the company_ID in the data but cannot get anything to come through with the other fields.

I have tried all of the following:

  • {{ticket.contact.company_id}}
  • {{ticket.contact.companyid}}
  • {{ticket.company.id}}}
  • {ticket.company_id}}
  • {{company_id}}
  • {{ticket.contact.department_id}}

None of these returns any value at all. What is the correct tag for pushing the ID of the company?

In Freshdesk, the company ID isn’t exposed directly as a liquid placeholder in automation webhooks. That’s why none of those variables work. The best workaround is to use {{ticket.company.name}} (which is supported) and then have your CRM look up the ID based on that name.If you really need the numeric ID, you’d have to use the Freshdesk API to fetch the ticket details (GET /api/v2/tickets/{{ticket.id}}) — that response includes "company_id". Unfortunately, automations alone can’t pass it directly in webhook payloads.