Hubspot
To create tickets in Hubspot for Squadcast Incidents with the help of Outgoing Webhooks
Last updated
To create tickets in Hubspot for Squadcast Incidents with the help of Outgoing Webhooks
Last updated
Follow the below steps to configure the “Hubspot - Create Ticket” action via webhooks.
Login to your Hubspot portal -> click on the drop down on the top right -> click Profile & Preferences
Click on Integrations -> Private apps -> click on Create a private app
Add the name and description of the App in the Basic info section.
Make sure to give all of the permissions ( Read and Write) in the Scopes section of the app. ( make sure that you have enabled the "tickets" permission)
Click on Create App and make sure to copy the Access Token shown in the next screen.
Navigate to Settings -> Webhooks.
Click Add Webhook. On the next screen, you will be guided through three steps. Navigate between these steps by clicking on any of the steps on the top bar.
Add Webhook Details:
Webhook Name: Enter the webhook name as Hubspot - Create Ticket.
Webhook Description (optional): Enter an optional description. For example - This webhook is for ticket creation in Hubspot for Squadcast Incidents.
Failure Notification Email (optional): Enter an email where you want to receive failure notifications. This is particularly helpful when you (or an administrator) want to be notified of webhook-related failures.
URL: Copy and paste the below API.
Additional Headers: Add Key: Authorization
and paste the Value
copied from Hubspot with the prefix Bearer
Click Next: Choose Webhook Type, and navigate to the next step.
Choose Webhook Type: Choose Webhook type (Manual or Automatic) and add configurations.
Manual Webhook: Manually trigger Webhooks under incidents, on demand. Under Manual Webhook, select the teams that are authorized to access the Webhook. You can select All Teams or enter specific Teams, from the drop-down.
Note:
Select this option only if you want to create Hubspot tickets manually on-demand. If you want a ticket, created automatically when certain conditions are met, please choose Automatic webhooks.
Automatic Webhook: Automatically trigger Webhooks when the configured conditions match. To set up Automatic Webhook Configurations:
Versions: Select v2
Triggers: Select the following Trigger events (conditions) for which the Webhook will be triggered:
Incident Triggered (This will create a Hubspot ticket whenever a new incident gets triggered in Squadcast)
Filters: You can apply filters on top of events, based on Teams, Services, Alert Sources, and Tags, by having an individual expression or a combination of expressions/expression groups.
Applying filters will trigger the webhook and create Freshservice tickets only for events that match the filter.
Click Next: Configure Payload, and navigate to the next step.
Configure Payload: Select the pre-configured template for Hubspot - Create Ticket. You can also test the Webhook by clicking the Test Webhook on the bottom right.
Note:
We have added the necessary fields in the template. You can change the "hs_ticket_priority" and "hs_pipeline" according to your use case and add additional ticket fields.
You can also use this link to check the fields accepted by Hubspot API.
Click Save and your Webhook is created.
Have any questions? Ask the community.