So my company is beginning to use HubSpot and we want to have contact and customer information to be included in the ticket.
My thought process is that we’d pass the user back to our website from our Hubspot help/faq stuff, to have them fill out a ticket from our website post that through the api into Hubspot.
The other way is that we could pass in the contact information into hubspot or company information into hubspot ahead of time, but I’m not sure if that’d be possible. Please let me know, as that’d be the more elegant solution.
----
So if we do create the ticket from out website, how would pass in the user information / company / custom fields, into the API.
I’m working with Accounts Dashboard | HubSpot
I was able to create a basic ticket with a subject/content, but am not able to figure out how to add in more information.
So I assume in order to create contact, I’d first need to see if the contact already exist inside of HubSpot, if not then create a contact. Then do the same with the Company info.
How would I then attach that information to the ticket being created?
Also, how would I attach any custom fields info to the ticket?
Thanks!
To your second query, if you’re looking to include custom fields on a ticket record, you would first need to create a custom ticket property, either via in-app or CRM API | Properties and assign value to the custom property when creating ticket via the CRM API | Tickets.
but this is showing error in my end
{
“status”: “error”,
“message”: “Unable to infer object type from: fromObjectType”,
“correlationId”: “98363cdc-76ae-4d60-97de-071423a93923”
}
Hey, @DLu-ang The Tickets API includes an example on how to create a Ticket and associate it to existing Objects, like a Contact or Deal, in the same call — Associations.
If you want to walk through it together using the above example, create a new post and tag me in it (as this one is old now) and I’ll add an example I created for another post.