Thank you, I’ve tried doing both.
{
"nodes": [
{
"parameters": {
"httpMethod": "POST",
"path": "bb197400-1a3d-4ec9-8230-8e4c65f1ae12",
"options": {}
},
"name": "Webhook",
"type": "n8n-nodes-base.webhook",
"typeVersion": 1,
"position": [
400,
310
],
"webhookId": "bb197400-1a3d-4ec9-8230-8e4c65f1ae12"
},
{
"parameters": {
"resource": "company",
"name": "={{$node[\"Webhook\"].json[\"body\"][\"post\"][\"post_title\"]}}",
"additionalFields": {
"websiteUrl": "={{$json[\"body\"][\"post_permalink\"]}}"
}
},
"name": "Hubspot Company",
"type": "n8n-nodes-base.hubspot",
"typeVersion": 1,
"position": [
580,
310
],
"credentials": {
"hubspotApi": "Hubspot"
}
},
{
"parameters": {
"resource": "ticket",
"pipelineId": "0",
"stageId": "1",
"ticketName": "New Service Added",
"additionalFields": {
"associatedCompanyIds": "5061376684",
}
},
"name": "Create Ticket",
"type": "n8n-nodes-base.hubspot",
"typeVersion": 1,
"position": [
760,
310
],
"credentials": {
"hubspotApi": "Hubspot"
}
}
],
"connections": {
"Webhook": {
"main": [
[
{
"node": "Hubspot Company",
"type": "main",
"index": 0
}
]
]
},
"Hubspot Company": {
"main": [
[
{
"node": "Create Ticket",
"type": "main",
"index": 0
}
]
]
}
}
}