Activation of Webhook workflow not working

I created a workflow with a post webhook trigger and tested it successfully.

Trying to activate the Webhook changing to a production URL i run into problems.

I can activate the workflow but the webhook is not posting any data if triggered
production URL is not available, meaning it jumps back to the test URL.

Anyone has a tip how to activate a post webhook workflow properly?

Workflow:

{
  "nodes": [
    {
      "parameters": {
        "httpMethod": "POST",
        "path": "cc36b858-ea60-49d0-923c-2ce7e63e5569",
        "options": {}
      },
      "name": "Webhook",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 1,
      "position": [
        620,
        460
      ],
      "webhookId": "a637b4bb-b4b9-4c7c-ae0a-d1a4721843ce"
    },
    {
      "parameters": {
        "resource": "person",
        "operation": "search",
        "term": "={{$node[\"Mautic get contact\"].json[\"fields\"][\"core\"][\"email\"][\"value\"]}}",
        "additionalFields": {
          "organizationId": ""
        }
      },
      "name": "PD search email",
      "type": "n8n-nodes-base.pipedrive",
      "typeVersion": 1,
      "position": [
        1060,
        460
      ],
      "alwaysOutputData": true,
      "credentials": {
        "pipedriveApi": {
          "id": "3",
          "name": "Itesys Pipedrive"
        }
      }
    },
    {
      "parameters": {
        "authentication": "oAuth2",
        "operation": "get",
        "contactId": "={{$node[\"Webhook\"].json[\"body\"][\"mautic.lead_post_save_new\"][0][\"contact\"][\"id\"]}}{{$node[\"Webhook\"].json[\"body\"][\"mautic.lead_post_save_update\"][0][\"contact\"][\"id\"]}}",
        "options": {}
      },
      "name": "Mautic get contact",
      "type": "n8n-nodes-base.mautic",
      "typeVersion": 1,
      "position": [
        840,
        460
      ],
      "credentials": {
        "mauticOAuth2Api": {
          "id": "2",
          "name": "Itesys Friendly Account"
        }
      }
    },
    {
      "parameters": {
        "conditions": {
          "number": [
            {
              "value1": "={{$node[\"PD search email\"].json[\"id\"]}}",
              "operation": "isEmpty"
            }
          ]
        }
      },
      "name": "contact does NOT exists in PD",
      "type": "n8n-nodes-base.if",
      "typeVersion": 1,
      "position": [
        1620,
        470
      ],
      "alwaysOutputData": false
    },
    {
      "parameters": {
        "resource": "organization",
        "name": "={{$node[\"Mautic get contact\"].json[\"fields\"][\"core\"][\"company\"][\"value\"]}}",
        "additionalFields": {
          "customProperties": {
            "property": [
              {
                "name": "=address",
                "value": "={{$node[\"Mautic get contact\"].json[\"fields\"][\"all\"][\"contact_adresse\"]}}"
              }
            ]
          }
        }
      },
      "name": "Create NEW Organisation ",
      "type": "n8n-nodes-base.pipedrive",
      "typeVersion": 1,
      "position": [
        2330,
        790
      ],
      "credentials": {
        "pipedriveApi": {
          "id": "3",
          "name": "Itesys Pipedrive"
        }
      }
    },
    {
      "parameters": {
        "resource": "person",
        "operation": "update",
        "personId": "={{$node[\"PD search email\"].json[\"id\"]}}",
        "updateFields": {
          "customProperties": {
            "property": []
          },
          "email": [
            "={{$node[\"Mautic get contact\"].json[\"fields\"][\"core\"][\"email\"][\"value\"]}}"
          ],
          "name": "={{$node[\"Mautic get contact\"].json[\"fields\"][\"core\"][\"firstname\"][\"value\"]}} {{$node[\"Mautic get contact\"].json[\"fields\"][\"core\"][\"lastname\"][\"value\"]}}",
          "org_id": "={{$node[\"Create NEW Organisation \"].json[\"id\"]}}"
        }
      },
      "name": "Link contact with New Company",
      "type": "n8n-nodes-base.pipedrive",
      "typeVersion": 1,
      "position": [
        2560,
        790
      ],
      "credentials": {
        "pipedriveApi": {
          "id": "3",
          "name": "Itesys Pipedrive"
        }
      }
    },
    {
      "parameters": {
        "conditions": {
          "number": [],
          "string": [
            {
              "value1": "={{$node[\"Mautic get contact\"].json[\"fields\"][\"core\"][\"company\"][\"value\"]}}",
              "operation": "isEmpty"
            }
          ],
          "boolean": []
        },
        "combineOperation": "any"
      },
      "name": "NOT Linked to company?",
      "type": "n8n-nodes-base.if",
      "typeVersion": 1,
      "position": [
        1810,
        610
      ],
      "alwaysOutputData": false,
      "retryOnFail": false
    },
    {
      "parameters": {
        "conditions": {
          "number": [],
          "string": [
            {
              "value1": "={{$node[\"Search Organisation1\"].json[\"id\"]}}",
              "operation": "isEmpty"
            }
          ],
          "boolean": []
        },
        "combineOperation": "any"
      },
      "name": "NOT Linked to existing Company?",
      "type": "n8n-nodes-base.if",
      "typeVersion": 1,
      "position": [
        2090,
        820
      ],
      "alwaysOutputData": false,
      "retryOnFail": false
    },
    {
      "parameters": {
        "resource": "organization",
        "operation": "search",
        "term": "={{$node[\"Mautic get contact\"].json[\"fields\"][\"core\"][\"company\"][\"value\"]}}",
        "additionalFields": {}
      },
      "name": "Search Organisation1",
      "type": "n8n-nodes-base.pipedrive",
      "typeVersion": 1,
      "position": [
        1340,
        460
      ],
      "alwaysOutputData": true,
      "credentials": {
        "pipedriveApi": {
          "id": "3",
          "name": "Itesys Pipedrive"
        }
      },
      "continueOnFail": true
    },
    {
      "parameters": {
        "resource": "person",
        "operation": "update",
        "personId": "={{$node[\"PD search email\"].json[\"id\"]}}",
        "updateFields": {
          "customProperties": {
            "property": [
              {
                "name": "9d26f66a9a11f0ef49ce0d18d234283d32879bcb",
                "value": "={{$node[\"Mautic get contact\"].json[\"fields\"][\"core\"][\"kampagne\"][\"value\"]}}"
              },
              {
                "name": "82b64615a4b92f36a10111a8ee35bdd5255f29b8",
                "value": "={{$node[\"Mautic get contact\"].json[\"fields\"][\"core\"][\"gender\"][\"value\"]}}"
              },
              {
                "name": "24acbc15495e7f4b7c6d81310bf37cc8c17693fa",
                "value": "={{$node[\"Mautic get contact\"].json[\"fields\"][\"core\"][\"role\"][\"value\"]}}"
              },
              {
                "name": "964310146dd981173c11659dcd7b0c5c4d1ade60",
                "value": "={{$node[\"Mautic get contact\"].json[\"fields\"][\"core\"][\"contact_source\"][\"value\"]}}"
              },
              {
                "name": "d0548903918250c4070a4295f20fa7aface81090",
                "value": "={{$node[\"Mautic get contact\"].json[\"fields\"][\"core\"][\"department\"][\"value\"]}}"
              },
              {
                "name": "f4ae7bf770ed735fd2f752fd0841ec978150ce76",
                "value": "={{$node[\"Mautic get contact\"].json[\"fields\"][\"core\"][\"position_new\"][\"value\"]}}"
              },
              {
                "name": "=won_deals_count",
                "value": "={{$node[\"Link contact with existing Company1 GET Person\"].json[\"won_deals_count\"]}}"
              },
              {
                "name": "000ff148f43bedbd7ae8ec29f612a84a5d0d64f3",
                "value": "={{$node[\"Mautic get contact\"].json[\"fields\"][\"core\"][\"current_campaign\"][\"value\"]}}"
              },
              {
                "name": "8aaf58f9f82f42e8c18123fd01ec3f4db1f6a7b7",
                "value": "={{$node[\"Mautic get contact\"].json[\"fields\"][\"core\"][\"job_function\"][\"value\"]}}"
              }
            ]
          },
          "email": [
            "={{$node[\"Mautic get contact\"].json[\"fields\"][\"core\"][\"email\"][\"value\"]}}"
          ],
          "name": "={{$node[\"Mautic get contact\"].json[\"fields\"][\"core\"][\"firstname\"][\"value\"]}} {{$node[\"Mautic get contact\"].json[\"fields\"][\"core\"][\"lastname\"][\"value\"]}}",
          "phone": [
            "={{$node[\"Mautic get contact\"].json[\"fields\"][\"core\"][\"mobile\"][\"value\"]}}"
          ]
        },
        "encodeProperties": "={{false}}"
      },
      "name": "Pipedrive1",
      "type": "n8n-nodes-base.pipedrive",
      "typeVersion": 1,
      "position": [
        2080,
        590
      ],
      "credentials": {
        "pipedriveApi": {
          "id": "3",
          "name": "Itesys Pipedrive"
        }
      }
    },
    {
      "parameters": {
        "resource": "person",
        "operation": "get",
        "personId": "={{$node[\"PD search email\"].json[\"id\"]}}"
      },
      "name": "Pipedrive GET Person",
      "type": "n8n-nodes-base.pipedrive",
      "typeVersion": 1,
      "position": [
        1190,
        610
      ],
      "alwaysOutputData": true,
      "credentials": {
        "pipedriveApi": {
          "id": "3",
          "name": "Itesys Pipedrive"
        }
      },
      "continueOnFail": true
    },
    {
      "parameters": {
        "resource": "organization",
        "operation": "get",
        "organizationId": "={{$node[\"Search Organisation1\"].json[\"id\"]}}"
      },
      "name": "Pipedrive GET Company",
      "type": "n8n-nodes-base.pipedrive",
      "typeVersion": 1,
      "position": [
        1470,
        600
      ],
      "credentials": {
        "pipedriveApi": {
          "id": "3",
          "name": "Itesys Pipedrive"
        }
      },
      "continueOnFail": true
    },
    {
      "parameters": {
        "resource": "person",
        "operation": "update",
        "personId": "={{$node[\"PD search email\"].json[\"id\"]}}",
        "updateFields": {
          "customProperties": {
            "property": [
              {
                "name": "9d26f66a9a11f0ef49ce0d18d234283d32879bcb",
                "value": "={{$node[\"Mautic get contact\"].json[\"fields\"][\"core\"][\"kampagne\"][\"value\"]}}"
              },
              {
                "name": "82b64615a4b92f36a10111a8ee35bdd5255f29b8",
                "value": "={{$node[\"Mautic get contact\"].json[\"fields\"][\"core\"][\"gender\"][\"value\"]}}"
              },
              {
                "name": "24acbc15495e7f4b7c6d81310bf37cc8c17693fa",
                "value": "={{$node[\"Mautic get contact\"].json[\"fields\"][\"core\"][\"role\"][\"value\"]}}"
              },
              {
                "name": "964310146dd981173c11659dcd7b0c5c4d1ade60",
                "value": "={{$node[\"Mautic get contact\"].json[\"fields\"][\"core\"][\"contact_source\"][\"value\"]}}"
              },
              {
                "name": "d0548903918250c4070a4295f20fa7aface81090",
                "value": "={{$node[\"Mautic get contact\"].json[\"fields\"][\"core\"][\"department\"][\"value\"]}}"
              },
              {
                "name": "f4ae7bf770ed735fd2f752fd0841ec978150ce76",
                "value": "={{$node[\"Mautic get contact\"].json[\"fields\"][\"core\"][\"position_new\"][\"value\"]}}"
              },
              {
                "name": "=won_deals_count",
                "value": "={{$node[\"Link contact with existing Company1 GET Person\"].json[\"won_deals_count\"]}}"
              },
              {
                "name": "000ff148f43bedbd7ae8ec29f612a84a5d0d64f3",
                "value": "={{$node[\"Mautic get contact\"].json[\"fields\"][\"core\"][\"current_campaign\"][\"value\"]}}"
              },
              {
                "name": "8aaf58f9f82f42e8c18123fd01ec3f4db1f6a7b7",
                "value": "={{$node[\"Mautic get contact\"].json[\"fields\"][\"core\"][\"job_function\"][\"value\"]}}"
              }
            ]
          },
          "email": [
            "={{$node[\"Mautic get contact\"].json[\"fields\"][\"core\"][\"email\"][\"value\"]}}"
          ],
          "name": "={{$node[\"Mautic get contact\"].json[\"fields\"][\"core\"][\"firstname\"][\"value\"]}} {{$node[\"Mautic get contact\"].json[\"fields\"][\"core\"][\"lastname\"][\"value\"]}}",
          "org_id": "={{$node[\"Search Organisation1\"].json[\"id\"]}}",
          "phone": [
            "={{$node[\"Mautic get contact\"].json[\"fields\"][\"core\"][\"mobile\"][\"value\"]}}"
          ]
        },
        "encodeProperties": "={{false}}"
      },
      "name": "Link with existing company",
      "type": "n8n-nodes-base.pipedrive",
      "typeVersion": 1,
      "position": [
        2340,
        990
      ],
      "credentials": {
        "pipedriveApi": {
          "id": "3",
          "name": "Itesys Pipedrive"
        }
      }
    }
  ],
  "connections": {
    "Webhook": {
      "main": [
        [
          {
            "node": "Mautic get contact",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "PD search email": {
      "main": [
        [
          {
            "node": "Pipedrive GET Person",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Mautic get contact": {
      "main": [
        [
          {
            "node": "PD search email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "contact does NOT exists in PD": {
      "main": [
        null,
        [
          {
            "node": "NOT Linked to company?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create NEW Organisation ": {
      "main": [
        [
          {
            "node": "Link contact with New Company",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "NOT Linked to company?": {
      "main": [
        [
          {
            "node": "Pipedrive1",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "NOT Linked to existing Company?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "NOT Linked to existing Company?": {
      "main": [
        [
          {
            "node": "Create NEW Organisation ",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Link with existing company",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Search Organisation1": {
      "main": [
        [
          {
            "node": "Pipedrive GET Company",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Pipedrive GET Person": {
      "main": [
        [
          {
            "node": "Search Organisation1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Pipedrive GET Company": {
      "main": [
        [
          {
            "node": "contact does NOT exists in PD",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}

n8n Version:
0.144.0

Source Code:

License:
Apache 2.0 with Commons Clause

Hi @iundf_Marketing_Tech, first of all, welcome to the community :tada:

Unfortunately, I wasn’t able to load the JSON representation of your workflow since it has lots formatting applied. Could you share it using the option for preformatted text (or manually put three backticks ``` in the lines above and below)? This should prevent any formatting from being applied.

image

On the actual issue, I suspect there might be a misunderstanding of how active workflows behave. When activating a workflow, you wouldn’t see the execution progress in the canvas (in other words, data sent to your production endpoint would not show up by straight away). You can, however, configure your workflow to save execution data in the workflow settings:

image

Past execution data will then be available through the Executions list and can be viewed by clicking the folder icon next to each execution:
image

Is this what you were looking for? If not, could you elaborate on the “webhook is not posting any data if triggered” part? Would this also be reproducible in a simplified workflow for you (ideally consisting just of the problematic node so we can take it from there)?

Thank you @MutedJam for the imediate answer.

Really enjoy N8N and the possibilites so far.

Of course i can provide you with the unedited workflow. hopfully this works:

{
  "nodes": [
    {
      "parameters": {
        "httpMethod": "POST",
        "path": "cc36b858-ea60-49d0-923c-2ce7e63e5569",
        "options": {}
      },
      "name": "Webhook",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 1,
      "position": [
        620,
        460
      ],
      "webhookId": "a637b4bb-b4b9-4c7c-ae0a-d1a4721843ce"
    },
    {
      "parameters": {
        "resource": "person",
        "operation": "search",
        "term": "={{$node[\"Mautic get contact\"].json[\"fields\"][\"core\"][\"email\"][\"value\"]}}",
        "additionalFields": {
          "organizationId": ""
        }
      },
      "name": "PD search email",
      "type": "n8n-nodes-base.pipedrive",
      "typeVersion": 1,
      "position": [
        1060,
        460
      ],
      "alwaysOutputData": true,
      "credentials": {
        "pipedriveApi": {
          "id": "3",
          "name": "Itesys Pipedrive"
        }
      }
    },
    {
      "parameters": {
        "authentication": "oAuth2",
        "operation": "get",
        "contactId": "={{$node[\"Webhook\"].json[\"body\"][\"mautic.lead_post_save_new\"][0][\"contact\"][\"id\"]}}{{$node[\"Webhook\"].json[\"body\"][\"mautic.lead_post_save_update\"][0][\"contact\"][\"id\"]}}",
        "options": {}
      },
      "name": "Mautic get contact",
      "type": "n8n-nodes-base.mautic",
      "typeVersion": 1,
      "position": [
        840,
        460
      ],
      "credentials": {
        "mauticOAuth2Api": {
          "id": "2",
          "name": "Itesys Friendly Account"
        }
      }
    },
    {
      "parameters": {
        "conditions": {
          "number": [
            {
              "value1": "={{$node[\"PD search email\"].json[\"id\"]}}",
              "operation": "isEmpty"
            }
          ]
        }
      },
      "name": "contact does NOT exists in PD",
      "type": "n8n-nodes-base.if",
      "typeVersion": 1,
      "position": [
        1620,
        470
      ],
      "alwaysOutputData": false
    },
    {
      "parameters": {
        "resource": "organization",
        "name": "={{$node[\"Mautic get contact\"].json[\"fields\"][\"core\"][\"company\"][\"value\"]}}",
        "additionalFields": {
          "customProperties": {
            "property": [
              {
                "name": "=address",
                "value": "={{$node[\"Mautic get contact\"].json[\"fields\"][\"all\"][\"contact_adresse\"]}}"
              }
            ]
          }
        }
      },
      "name": "Create NEW Organisation ",
      "type": "n8n-nodes-base.pipedrive",
      "typeVersion": 1,
      "position": [
        2330,
        790
      ],
      "credentials": {
        "pipedriveApi": {
          "id": "3",
          "name": "Itesys Pipedrive"
        }
      }
    },
    {
      "parameters": {
        "resource": "person",
        "operation": "update",
        "personId": "={{$node[\"PD search email\"].json[\"id\"]}}",
        "updateFields": {
          "customProperties": {
            "property": []
          },
          "email": [
            "={{$node[\"Mautic get contact\"].json[\"fields\"][\"core\"][\"email\"][\"value\"]}}"
          ],
          "name": "={{$node[\"Mautic get contact\"].json[\"fields\"][\"core\"][\"firstname\"][\"value\"]}} {{$node[\"Mautic get contact\"].json[\"fields\"][\"core\"][\"lastname\"][\"value\"]}}",
          "org_id": "={{$node[\"Create NEW Organisation \"].json[\"id\"]}}"
        }
      },
      "name": "Link contact with New Company",
      "type": "n8n-nodes-base.pipedrive",
      "typeVersion": 1,
      "position": [
        2560,
        790
      ],
      "credentials": {
        "pipedriveApi": {
          "id": "3",
          "name": "Itesys Pipedrive"
        }
      }
    },
    {
      "parameters": {
        "conditions": {
          "number": [],
          "string": [
            {
              "value1": "={{$node[\"Mautic get contact\"].json[\"fields\"][\"core\"][\"company\"][\"value\"]}}",
              "operation": "isEmpty"
            }
          ],
          "boolean": []
        },
        "combineOperation": "any"
      },
      "name": "NOT Linked to company?",
      "type": "n8n-nodes-base.if",
      "typeVersion": 1,
      "position": [
        1810,
        610
      ],
      "alwaysOutputData": false,
      "retryOnFail": false
    },
    {
      "parameters": {
        "conditions": {
          "number": [],
          "string": [
            {
              "value1": "={{$node[\"Search Organisation1\"].json[\"id\"]}}",
              "operation": "isEmpty"
            }
          ],
          "boolean": []
        },
        "combineOperation": "any"
      },
      "name": "NOT Linked to existing Company?",
      "type": "n8n-nodes-base.if",
      "typeVersion": 1,
      "position": [
        2090,
        820
      ],
      "alwaysOutputData": false,
      "retryOnFail": false
    },
    {
      "parameters": {
        "resource": "organization",
        "operation": "search",
        "term": "={{$node[\"Mautic get contact\"].json[\"fields\"][\"core\"][\"company\"][\"value\"]}}",
        "additionalFields": {}
      },
      "name": "Search Organisation1",
      "type": "n8n-nodes-base.pipedrive",
      "typeVersion": 1,
      "position": [
        1340,
        460
      ],
      "alwaysOutputData": true,
      "credentials": {
        "pipedriveApi": {
          "id": "3",
          "name": "Itesys Pipedrive"
        }
      },
      "continueOnFail": true
    },
    {
      "parameters": {
        "resource": "person",
        "operation": "update",
        "personId": "={{$node[\"PD search email\"].json[\"id\"]}}",
        "updateFields": {
          "customProperties": {
            "property": [
              {
                "name": "9d26f66a9a11f0ef49ce0d18d234283d32879bcb",
                "value": "={{$node[\"Mautic get contact\"].json[\"fields\"][\"core\"][\"kampagne\"][\"value\"]}}"
              },
              {
                "name": "82b64615a4b92f36a10111a8ee35bdd5255f29b8",
                "value": "={{$node[\"Mautic get contact\"].json[\"fields\"][\"core\"][\"gender\"][\"value\"]}}"
              },
              {
                "name": "24acbc15495e7f4b7c6d81310bf37cc8c17693fa",
                "value": "={{$node[\"Mautic get contact\"].json[\"fields\"][\"core\"][\"role\"][\"value\"]}}"
              },
              {
                "name": "964310146dd981173c11659dcd7b0c5c4d1ade60",
                "value": "={{$node[\"Mautic get contact\"].json[\"fields\"][\"core\"][\"contact_source\"][\"value\"]}}"
              },
              {
                "name": "d0548903918250c4070a4295f20fa7aface81090",
                "value": "={{$node[\"Mautic get contact\"].json[\"fields\"][\"core\"][\"department\"][\"value\"]}}"
              },
              {
                "name": "f4ae7bf770ed735fd2f752fd0841ec978150ce76",
                "value": "={{$node[\"Mautic get contact\"].json[\"fields\"][\"core\"][\"position_new\"][\"value\"]}}"
              },
              {
                "name": "=won_deals_count",
                "value": "={{$node[\"Link contact with existing Company1 GET Person\"].json[\"won_deals_count\"]}}"
              },
              {
                "name": "000ff148f43bedbd7ae8ec29f612a84a5d0d64f3",
                "value": "={{$node[\"Mautic get contact\"].json[\"fields\"][\"core\"][\"current_campaign\"][\"value\"]}}"
              },
              {
                "name": "8aaf58f9f82f42e8c18123fd01ec3f4db1f6a7b7",
                "value": "={{$node[\"Mautic get contact\"].json[\"fields\"][\"core\"][\"job_function\"][\"value\"]}}"
              }
            ]
          },
          "email": [
            "={{$node[\"Mautic get contact\"].json[\"fields\"][\"core\"][\"email\"][\"value\"]}}"
          ],
          "name": "={{$node[\"Mautic get contact\"].json[\"fields\"][\"core\"][\"firstname\"][\"value\"]}} {{$node[\"Mautic get contact\"].json[\"fields\"][\"core\"][\"lastname\"][\"value\"]}}",
          "phone": [
            "={{$node[\"Mautic get contact\"].json[\"fields\"][\"core\"][\"mobile\"][\"value\"]}}"
          ]
        },
        "encodeProperties": "={{false}}"
      },
      "name": "Pipedrive1",
      "type": "n8n-nodes-base.pipedrive",
      "typeVersion": 1,
      "position": [
        2080,
        590
      ],
      "credentials": {
        "pipedriveApi": {
          "id": "3",
          "name": "Itesys Pipedrive"
        }
      }
    },
    {
      "parameters": {
        "resource": "person",
        "operation": "get",
        "personId": "={{$node[\"PD search email\"].json[\"id\"]}}"
      },
      "name": "Pipedrive GET Person",
      "type": "n8n-nodes-base.pipedrive",
      "typeVersion": 1,
      "position": [
        1190,
        610
      ],
      "alwaysOutputData": true,
      "credentials": {
        "pipedriveApi": {
          "id": "3",
          "name": "Itesys Pipedrive"
        }
      },
      "continueOnFail": true
    },
    {
      "parameters": {
        "resource": "organization",
        "operation": "get",
        "organizationId": "={{$node[\"Search Organisation1\"].json[\"id\"]}}"
      },
      "name": "Pipedrive GET Company",
      "type": "n8n-nodes-base.pipedrive",
      "typeVersion": 1,
      "position": [
        1470,
        600
      ],
      "credentials": {
        "pipedriveApi": {
          "id": "3",
          "name": "Itesys Pipedrive"
        }
      },
      "continueOnFail": true
    },
    {
      "parameters": {
        "resource": "person",
        "operation": "update",
        "personId": "={{$node[\"PD search email\"].json[\"id\"]}}",
        "updateFields": {
          "customProperties": {
            "property": [
              {
                "name": "9d26f66a9a11f0ef49ce0d18d234283d32879bcb",
                "value": "={{$node[\"Mautic get contact\"].json[\"fields\"][\"core\"][\"kampagne\"][\"value\"]}}"
              },
              {
                "name": "82b64615a4b92f36a10111a8ee35bdd5255f29b8",
                "value": "={{$node[\"Mautic get contact\"].json[\"fields\"][\"core\"][\"gender\"][\"value\"]}}"
              },
              {
                "name": "24acbc15495e7f4b7c6d81310bf37cc8c17693fa",
                "value": "={{$node[\"Mautic get contact\"].json[\"fields\"][\"core\"][\"role\"][\"value\"]}}"
              },
              {
                "name": "964310146dd981173c11659dcd7b0c5c4d1ade60",
                "value": "={{$node[\"Mautic get contact\"].json[\"fields\"][\"core\"][\"contact_source\"][\"value\"]}}"
              },
              {
                "name": "d0548903918250c4070a4295f20fa7aface81090",
                "value": "={{$node[\"Mautic get contact\"].json[\"fields\"][\"core\"][\"department\"][\"value\"]}}"
              },
              {
                "name": "f4ae7bf770ed735fd2f752fd0841ec978150ce76",
                "value": "={{$node[\"Mautic get contact\"].json[\"fields\"][\"core\"][\"position_new\"][\"value\"]}}"
              },
              {
                "name": "=won_deals_count",
                "value": "={{$node[\"Link contact with existing Company1 GET Person\"].json[\"won_deals_count\"]}}"
              },
              {
                "name": "000ff148f43bedbd7ae8ec29f612a84a5d0d64f3",
                "value": "={{$node[\"Mautic get contact\"].json[\"fields\"][\"core\"][\"current_campaign\"][\"value\"]}}"
              },
              {
                "name": "8aaf58f9f82f42e8c18123fd01ec3f4db1f6a7b7",
                "value": "={{$node[\"Mautic get contact\"].json[\"fields\"][\"core\"][\"job_function\"][\"value\"]}}"
              }
            ]
          },
          "email": [
            "={{$node[\"Mautic get contact\"].json[\"fields\"][\"core\"][\"email\"][\"value\"]}}"
          ],
          "name": "={{$node[\"Mautic get contact\"].json[\"fields\"][\"core\"][\"firstname\"][\"value\"]}} {{$node[\"Mautic get contact\"].json[\"fields\"][\"core\"][\"lastname\"][\"value\"]}}",
          "org_id": "={{$node[\"Search Organisation1\"].json[\"id\"]}}",
          "phone": [
            "={{$node[\"Mautic get contact\"].json[\"fields\"][\"core\"][\"mobile\"][\"value\"]}}"
          ]
        },
        "encodeProperties": "={{false}}"
      },
      "name": "Link with existing company",
      "type": "n8n-nodes-base.pipedrive",
      "typeVersion": 1,
      "position": [
        2340,
        990
      ],
      "credentials": {
        "pipedriveApi": {
          "id": "3",
          "name": "Itesys Pipedrive"
        }
      }
    }
  ],
  "connections": {
    "Webhook": {
      "main": [
        [
          {
            "node": "Mautic get contact",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "PD search email": {
      "main": [
        [
          {
            "node": "Pipedrive GET Person",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Mautic get contact": {
      "main": [
        [
          {
            "node": "PD search email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "contact does NOT exists in PD": {
      "main": [
        null,
        [
          {
            "node": "NOT Linked to company?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create NEW Organisation ": {
      "main": [
        [
          {
            "node": "Link contact with New Company",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "NOT Linked to company?": {
      "main": [
        [
          {
            "node": "Pipedrive1",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "NOT Linked to existing Company?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "NOT Linked to existing Company?": {
      "main": [
        [
          {
            "node": "Create NEW Organisation ",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Link with existing company",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Search Organisation1": {
      "main": [
        [
          {
            "node": "Pipedrive GET Company",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Pipedrive GET Person": {
      "main": [
        [
          {
            "node": "Search Organisation1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Pipedrive GET Company": {
      "main": [
        [
          {
            "node": "contact does NOT exists in PD",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}

concerning th eexecution log.

If i trigger the webhook in Mautic, there is no data visible afterwards. If i execute manually data is pushed without problem to pipedrive.

Looking foreward to your suggestion.

Glad to hear you like n8n so far, I am sure we can work this one out too :smiley:

Would the problem here being that Mautic not triggers the webhook at all or that it doesn’t pass on data? And would the same problem occur when using the Mautic Trigger rather than the generic webhook node?

And could you double-check whether the webhook’s production URL works for you when used manually (for example via curl, Postman or Insomnia)?

The mautic triggers the webhook but n8n deosn’t revieve anything…

404
{“code”:404,“message”:“The requested webhook “POST cc36b858-ea60-49d0-923c-2ce7e63e5569” is not registered.”,“hint”:"Click the ‘Execute workflow’ button on the canvas, then try again.
November 17, 2021 1:04 pm CET

The Webhook production URL is not available, or at least it swithces back to test url after reopening a node. I was wondering why this happens and if this depends on any settings.

And Yes, the production Webhook works:
https://iundf.friendlyconnect.io/webhook/cc36b858-ea60-49d0-923c-2ce7e63e5569

Seeing the URL works when sending a manual POST request (I’ve quickly tried this from my end), Mautic isn’t quite sending what n8n is expecting.

I tried reproducing this problem using my own Mautic account and n8n production webhook URL:

The request arrives as expected in my n8n instance:

Mautic also logs a success in this case (I assume this is where you saw the 404 error?):

I can also submit a Mautic payload to your URL successfully:

So this very much looks like a problem with the specific Mautic webhook you have configured. Could you double-check the URL field in your webhook settings and make sure it’s an exact match of your production URL (no trailing spaces or weird characters anywhere)?

Whenever i send a testloas from mautic it is also a successful. the problem seems to be in the webhook node in n8n. I added a link with a screenrecording for you to see what i mean with not beeing able to switch to the production URL.

Have you seen this before? There is no way i can switch to a production URL.

So what you show in this video is just the default behaviour - the node just shows the test URL first and you’d need to manually click on the production URL to view it. You don’t need to switch between the URLs for them to work, both URLs exist separately from each other. They are also explained in more detail here in the docs.

The test URL would however only work when you manually execute your workflow.

Your production URL would work whenever the workflow is active.

So you need to make sure to set the production URL in your Mautic webhook.

@MutedJam

This was it… I was not aware of not needing to switch between urls.

This solved my problem!

Thanks a lot!!

1 Like

Awesome! And sorry it took me a while to fully get the problem. I am glad to hear it worked out in the end, thanks so much for confirming!