Hi!
I’ve set up a project using the cli. The project contains a webhook that should trigger when a Lead is created. But it never triggers?
I’m probably doing something very obviously wrong but I have been staring at this for hours and would really appreciate some help.
It works fine if I use objectType contact. But I really want to get it up and running with the lead object. Triggering the webhook with the “Test this subscription” feature under the webhook details also works.
I’m running the whole setup in a developer test account.
Is the issue that leads are not supported for webhooks yet? In that case, are custom fields on Contacts supported for webhooks? (I couldn’t get that working either)
Webhook conf:
{
"uid": "hubspot_leads_webhooks",
"type": "webhooks",
"config": {
"settings": {
"targetUrl": "https://webhook.site/97558b73-b094-419b-91e5-017e48712892",
"maxConcurrentRequests": 10
},
"subscriptions": {
"crmObjects": [
{
"subscriptionType": "object.creation",
"objectType": "lead",
"active": true
}
]
}
}
}
app conf:
{
"uid": "hubspot_leads_app",
"type": "app",
"config": {
"description": "An example to demonstrate how to build a static private app with developer projects.",
"name": "hubspot-leads-Application",
"distribution": "private",
"auth": {
"type": "static",
"requiredScopes": [
"oauth",
"crm.objects.contacts.read",
"crm.objects.contacts.write",
"crm.objects.leads.read",
"crm.objects.leads.write"
],
"optionalScopes": [],
"conditionallyRequiredScopes": []
},
"permittedUrls": {
"fetch": ["https://api.hubapi.com"],
"iframe": [],
"img": []
},
"support": {
"supportEmail": "support@example.com",
"documentationUrl": "https://example.com/docs",
"supportUrl": "https://example.com/support",
"supportPhone": "+18005555555"
}
}
}