๐Ÿค Find KlickTipp tags to remove by prefix

โšก 1 views ยท ๐Ÿค CRM & Sales Operations

Description

image.png

Community Node Disclaimer

This workflow uses KlickTipp community nodes, available for self-hosted n8n instances only.


Overview

This sub-workflow determines which KlickTipp tags should be removed from a contact by comparing:

The workflow calculates the difference between the currently assigned prefixed tags and the desired prefixed tags, and returns a single array tagNamesToRemove[]. This result can be passed to a follow-up workflow that performs the actual tag unassignment in KlickTipp.


Inputs


Logic

  1. Fetch all available tags from KlickTipp.
  2. Keep only tags whose value starts with the provided prefix (managed scope).
  3. Split the incoming setTags[] into individual items (the keep list).
  4. Compare the scoped KlickTipp tags against the keep list by tag name (value).
  5. Keep only those scoped KlickTipp tags that do not have a match in setTags[].
  6. Aggregate the remaining tag names into a single output array tagNamesToRemove[].

Example

Input parameters:

Assuming the contact currently has the following prefixed tags:

The workflow will return:


Output

The workflow returns a single item containing the array tagNamesToRemove[], which can be passed directly into a downstream workflow responsible for tag unassignment.


Notes

๐Ÿ”— Nodes Used

Execute Workflow Trigger, Filter

๐Ÿ“ฅ Import

Download workflow.json and import into n8n: Workflow menu โ†’ Import from File

๐Ÿ“– Importing guide ยท ๐Ÿ”‘ Credential setup