Dear All;
What is the recommended way of adding multiple Trigger Subscriptions on an HubSpot Trigger or any other if there is a general way to do it ?
Using multiple HubSpot Triggers creates this self explanatory error below:
“Can’t change or clear target URL because you have active subscriptions.”
Since the first Trigger Node subscribes to the target HubSpot application first, second subscription fails on re-writing that URL.
It is possible to create multiple applications on the hubspot side and creating workflows for each of them on n8n. But this means having tens of apps connected to your HubSpot account.
There is a workaround working: (@version 0.62.1)
Multiple subscriptions can be added via HubSpot interface, solution is simply adding other subscriptions after the first one is created by the n8n workflow automatically. Creating a workflow with less frequently used subscription like “contact.message”, you can keep adding multiple subscriptions to the same Hubspot app, n8n still receives the body of them too.
A Development Suggestion:
As I’ve looked to other triggers nodes of n8n, my recommendation is to create a Node for multiple subcsriptions to a single WebHook Url. Something like a combination of a trigger node and a Switch node.
This node;
- Will subscribe to target Hubspot App for once.
- Switch by the “subscriptionType” parameter in the incoming body of the WebHook call.
- Enable Visual Developer to activate switch calls depending on the value, so it will add multiple output connection points to the right side of the node.
The result will be something like this or may be the multiple nodes will be visible on the edge of the box:
I am aware that this can be done easily with a WebHook and a Switch. But this is a product decision for n8n. You can consider updating the base of triggers to support this aiming to go to the “Low-Code Development Environment” more. There could be an interface to inject a JS function for the “Switch” decision behavior in the trigger box as well.
Best

