バッチでExcel/CSVファイルにアップロードされたHubSpot連絡先を削除

中級

これはSales, Marketing分野の自動化ワークフローで、11個のノードを含みます。主にIf, Set, Hubspot, Webhook, SplitInBatchesなどのノードを使用。 アップロードされた Excel/CSV ファイル内の HubSpot コンタクトを一括削除

前提条件
  • HubSpot API Key
  • HTTP Webhookエンドポイント(n8nが自動生成)
ワークフロープレビュー
ノード接続関係を可視化、ズームとパンをサポート
ワークフローをエクスポート
以下のJSON設定をn8nにインポートして、このワークフローを使用できます
{
  "meta": {
    "instanceId": "7d8066d2f56a07000fe7d753d3eeabf0ecdf68413466f30d10afe0906f058427",
    "templateCredsSetupCompleted": true
  },
  "nodes": [
    {
      "id": "4ea0189c-83eb-4c95-92f8-db9b3dd9b521",
      "name": "Webhook",
      "type": "n8n-nodes-base.webhook",
      "position": [
        20,
        150
      ],
      "webhookId": "abf99fbe-fa03-4f55-b978-db7cba42a565",
      "parameters": {
        "path": "abf99fbe-fa03-4f55-b978-db7cba42a565",
        "options": {},
        "httpMethod": "POST"
      },
      "typeVersion": 2
    },
    {
      "id": "0f8a3ab7-8fae-4d94-8721-05239e402a34",
      "name": "項目をループ処理",
      "type": "n8n-nodes-base.splitInBatches",
      "onError": "continueErrorOutput",
      "position": [
        680,
        150
      ],
      "parameters": {
        "options": {
          "reset": "={{ false }}"
        }
      },
      "typeVersion": 3
    },
    {
      "id": "7027161a-72ee-47b7-b393-a71a0e9d37f9",
      "name": "Replace Me",
      "type": "n8n-nodes-base.noOp",
      "position": [
        1560,
        150
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "a376ab8e-d925-4c06-a019-1da903a4a5c4",
      "name": "連絡先を削除",
      "type": "n8n-nodes-base.hubspot",
      "position": [
        1340,
        0
      ],
      "parameters": {
        "contactId": {
          "__rl": true,
          "mode": "id",
          "value": "={{ $json.id }}"
        },
        "operation": "delete",
        "authentication": "appToken"
      },
      "credentials": {
        "hubspotAppToken": {
          "id": "IpprhyuB3yZtaB5z",
          "name": "HubSpot App Token account"
        }
      },
      "typeVersion": 2.1
    },
    {
      "id": "b7fb3731-255b-4a06-8bb0-51a896721bd5",
      "name": "連絡先を検索",
      "type": "n8n-nodes-base.hubspot",
      "onError": "continueRegularOutput",
      "position": [
        900,
        75
      ],
      "parameters": {
        "limit": 1,
        "operation": "search",
        "authentication": "appToken",
        "filterGroupsUi": {
          "filterGroupsValues": [
            {
              "filtersUi": {
                "filterValues": [
                  {
                    "value": "={{ $json.email }}",
                    "propertyName": "email|string"
                  }
                ]
              }
            }
          ]
        },
        "additionalFields": {}
      },
      "credentials": {
        "hubspotAppToken": {
          "id": "IpprhyuB3yZtaB5z",
          "name": "HubSpot App Token account"
        }
      },
      "typeVersion": 2.1,
      "alwaysOutputData": true
    },
    {
      "id": "7f7059cc-cd26-43d5-9006-cd56cf020bce",
      "name": "連絡先が存在する場合",
      "type": "n8n-nodes-base.if",
      "position": [
        1120,
        75
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "version": 2,
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "strict"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "dbb5bafc-0939-492f-811f-4bbbfcbbf09d",
              "operator": {
                "type": "string",
                "operation": "exists",
                "singleValue": true
              },
              "leftValue": "={{ $json.id }}",
              "rightValue": ""
            }
          ]
        }
      },
      "typeVersion": 2.2
    },
    {
      "id": "b1e62cd8-5745-4912-9303-2982fa0a26f5",
      "name": "データを解析",
      "type": "n8n-nodes-base.set",
      "position": [
        460,
        150
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "40719114-6df6-47b5-ba76-ff7f5dbf16db",
              "name": "email",
              "type": "string",
              "value": "={{ $json.emails }}"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "59ef516b-9237-4085-9e88-a76608c0e70b",
      "name": "ファイルデータを抽出",
      "type": "n8n-nodes-base.extractFromFile",
      "position": [
        240,
        150
      ],
      "parameters": {
        "options": {},
        "operation": "xlsx"
      },
      "notesInFlow": false,
      "typeVersion": 1
    },
    {
      "id": "bfef804a-d87d-4f49-90c3-844ba010bf2d",
      "name": "付箋",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -40,
        20
      ],
      "parameters": {
        "height": 120,
        "content": "## Start Workflow\nCopy the webhook URL and use it in your app or API client (like Postman)."
      },
      "typeVersion": 1
    },
    {
      "id": "ff6f02b4-0495-43d3-b6b6-a11cf0dd4ceb",
      "name": "付箋1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        140,
        320
      ],
      "parameters": {
        "color": 4,
        "width": 320,
        "height": 100,
        "content": "## Change Input File Format\nChange file format if needed in Extract File Data Node."
      },
      "typeVersion": 1
    },
    {
      "id": "4e23de5c-85a4-40cb-94a1-6216a820bdad",
      "name": "付箋2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        360,
        0
      ],
      "parameters": {
        "color": 4,
        "width": 320,
        "height": 140,
        "content": "## Change Field Name\nChange Data Header name if needed in Parse Data Node.\n\ncurrent -> emails"
      },
      "typeVersion": 1
    }
  ],
  "pinData": {},
  "connections": {
    "4ea0189c-83eb-4c95-92f8-db9b3dd9b521": {
      "main": [
        [
          {
            "node": "59ef516b-9237-4085-9e88-a76608c0e70b",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "b1e62cd8-5745-4912-9303-2982fa0a26f5": {
      "main": [
        [
          {
            "node": "0f8a3ab7-8fae-4d94-8721-05239e402a34",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "7027161a-72ee-47b7-b393-a71a0e9d37f9": {
      "main": [
        [
          {
            "node": "0f8a3ab7-8fae-4d94-8721-05239e402a34",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "a376ab8e-d925-4c06-a019-1da903a4a5c4": {
      "main": [
        [
          {
            "node": "7027161a-72ee-47b7-b393-a71a0e9d37f9",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "b7fb3731-255b-4a06-8bb0-51a896721bd5": {
      "main": [
        [
          {
            "node": "7f7059cc-cd26-43d5-9006-cd56cf020bce",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "0f8a3ab7-8fae-4d94-8721-05239e402a34": {
      "main": [
        [],
        [
          {
            "node": "b7fb3731-255b-4a06-8bb0-51a896721bd5",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "59ef516b-9237-4085-9e88-a76608c0e70b": {
      "main": [
        [
          {
            "node": "b1e62cd8-5745-4912-9303-2982fa0a26f5",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "7f7059cc-cd26-43d5-9006-cd56cf020bce": {
      "main": [
        [
          {
            "node": "a376ab8e-d925-4c06-a019-1da903a4a5c4",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "7027161a-72ee-47b7-b393-a71a0e9d37f9",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
よくある質問

このワークフローの使い方は?

上記のJSON設定コードをコピーし、n8nインスタンスで新しいワークフローを作成して「JSONからインポート」を選択、設定を貼り付けて認証情報を必要に応じて変更してください。

このワークフローはどんな場面に適していますか?

中級 - 営業, マーケティング

有料ですか?

このワークフローは完全無料です。ただし、ワークフローで使用するサードパーティサービス(OpenAI APIなど)は別途料金が発生する場合があります。

ワークフロー情報
難易度
中級
ノード数11
カテゴリー2
ノードタイプ8
難易度説明

経験者向け、6-15ノードの中程度の複雑さのワークフロー

外部リンク
n8n.ioで表示

このワークフローを共有

カテゴリー

カテゴリー: 34