I need to create a ticket through Zapier on Hubspot.
I am using a custom form on my website. I get the email address and description and I want to create a ticket that I can respond to. Is there a way to do that?
Hey @mike1234 that’s quite a broad question and includes a huge number of variables.
First off, is there any particular reason you don’t want to use a regular HubSpot form to create a ticket?
If that’s not an option, when you say “custom form” is this an entirely custom built form or are you capturing submissions via some external system? If it’s a fully custom system, you would need to send a webhook to zapier in order to have the data there to trigger the ticket creation action for HubSpot.
Alternatively, it could just cut out the middleperson to just send your data directly to the HubSpot create a ticket api to create tickets from your custom form.
Hey Tom,
That’s a great recommendation and I think you are right about using the form. However, I do have a follow up question. Because of my setup, I need to use Zapier to create the form. There is a zap already set up for that. However, it doesn’t seem to work (or I’m doing it wrong - but I don’t think so).
Basically, I am using the zap to create the form, I have filled in the required information, if I don’t have it create a Ticket, the zap works fine. If I have the form also create a ticket, it fails.
Any advice?
Hey @mike1234 looks like you’re sending that information via the forms api and not the ticket creation api I linked. You’re also attempting to pass these properties as contact properties and not ticket properties.
You need to set the correct “objecttypeID” for your ticket properties as outlined within the api documentation:
You’re setting the object id as 0-1 whereas tickets are 0-5
Just seeing your previous comment about using Zapier now @mike1234
I’d honestly recomend just using a HubSpot form to create tickets in this situation. BUt if you absolutely need to use zapier, I don’t believe Zapier allows such granular flexibility to specify which object each form field is mapping to.
You realistically need to have 2 zap actions, one to create a contact (assuming you wish to do this) from your data.
Then a second to create a ticket using the data you have.
Idealy you likely want to create an association too if Zapier supports this. I haven’t looked in zapier for a little while so I’m not sure, but I don’t believe it does associations between objects natively.
