Google Driveフォルダ内の全ファイル取得

中級

これはFile Management分野の自動化ワークフローで、14個のノードを含みます。主にIf, Set, Code, GoogleDrive, SplitInBatchesなどのノードを使用。 ネストされたフォルダをサポートするGoogle Driveワークフロー

前提条件
  • Google Drive API認証情報

カテゴリー

ワークフロープレビュー
ノード接続関係を可視化、ズームとパンをサポート
ワークフローをエクスポート
以下のJSON設定をn8nにインポートして、このワークフローを使用できます
{
  "id": "WyWBYMQWkj2qOEYW",
  "meta": {
    "instanceId": "b50483b2122f6dc268662b45507d575d939570ea8e1e086601ebb3b6273c1cfd",
    "templateCredsSetupCompleted": true
  },
  "name": "Get all files inside a GoogleDrive Folder",
  "tags": [],
  "nodes": [
    {
      "id": "7ad58632-aaae-49d1-8a4d-192696ea5fbe",
      "name": "親フォルダにフォルダがない場合",
      "type": "n8n-nodes-base.if",
      "position": [
        720,
        224
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "e295dc16-bee6-4c2d-a1c4-275c093ee98a",
      "name": "付箋",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -224,
        -304
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "306a72d8-17cb-491e-ab71-563d67033dc4",
      "name": "親フォルダにネストされたフォルダがあるかどうか",
      "type": "n8n-nodes-base.if",
      "position": [
        464,
        96
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "c7066d3c-db7e-4d10-8ea7-844f4a7f92b5",
      "name": "実行開始",
      "type": "n8n-nodes-base.executeWorkflowTrigger",
      "position": [
        -16,
        96
      ],
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "37ad0017-a81e-4142-a699-5979917d3e3e",
      "name": "すべてのフォルダIDを取得",
      "type": "n8n-nodes-base.code",
      "position": [
        928,
        -32
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "f395e3b0-4010-4ce6-b9e4-d40c38eaf6e2",
      "name": "親フォルダIDを返す",
      "type": "n8n-nodes-base.set",
      "position": [
        928,
        144
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "69349d16-147a-4a53-921f-2afbce976421",
      "name": "親フォルダIDをサブワークフローに返す",
      "type": "n8n-nodes-base.set",
      "position": [
        928,
        304
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "cc185a48-6793-4dea-ab4b-1a4227391552",
      "name": "サブ実行開始",
      "type": "n8n-nodes-base.executeWorkflow",
      "position": [
        720,
        -32
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "97895244-0065-4aa8-b200-87782f6bcf8c",
      "name": "フォルダIDから子フォルダを取得",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        240,
        96
      ],
      "parameters": {},
      "executeOnce": true,
      "typeVersion": 3,
      "alwaysOutputData": true
    },
    {
      "id": "9df3e103-c7a7-41dc-a5e0-0b77b4959a93",
      "name": "フォルダIDをループ処理",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        1600,
        -32
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "15f2bc5a-0c2f-45f8-b7dc-b4775641f6c1",
      "name": "フォルダ内の全ファイルを取得",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        1856,
        192
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "1fe7e380-e5a2-422d-a91f-3c9382fadedf",
      "name": "すべてのファイルIDを返す",
      "type": "n8n-nodes-base.set",
      "position": [
        1856,
        -48
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "c9b24b37-9745-4e4d-b9bc-895765c0b210",
      "name": "付箋1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -64,
        -128
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "fe94e670-7de0-42ce-889b-d755b4edb5bf",
      "name": "付箋2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1424,
        -128
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "49da4933-34df-466f-912e-7bd8f02d0b20",
  "connections": {
    "c7066d3c-db7e-4d10-8ea7-844f4a7f92b5": {
      "main": [
        [
          {
            "node": "97895244-0065-4aa8-b200-87782f6bcf8c",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "37ad0017-a81e-4142-a699-5979917d3e3e": {
      "main": [
        [
          {
            "node": "9df3e103-c7a7-41dc-a5e0-0b77b4959a93",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "cc185a48-6793-4dea-ab4b-1a4227391552": {
      "main": [
        [
          {
            "node": "37ad0017-a81e-4142-a699-5979917d3e3e",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "9df3e103-c7a7-41dc-a5e0-0b77b4959a93": {
      "main": [
        [
          {
            "node": "1fe7e380-e5a2-422d-a91f-3c9382fadedf",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "15f2bc5a-0c2f-45f8-b7dc-b4775641f6c1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "f395e3b0-4010-4ce6-b9e4-d40c38eaf6e2": {
      "main": [
        [
          {
            "node": "9df3e103-c7a7-41dc-a5e0-0b77b4959a93",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "15f2bc5a-0c2f-45f8-b7dc-b4775641f6c1": {
      "main": [
        [
          {
            "node": "9df3e103-c7a7-41dc-a5e0-0b77b4959a93",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "7ad58632-aaae-49d1-8a4d-192696ea5fbe": {
      "main": [
        [
          {
            "node": "f395e3b0-4010-4ce6-b9e4-d40c38eaf6e2",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "69349d16-147a-4a53-921f-2afbce976421",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "97895244-0065-4aa8-b200-87782f6bcf8c": {
      "main": [
        [
          {
            "node": "306a72d8-17cb-491e-ab71-563d67033dc4",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "69349d16-147a-4a53-921f-2afbce976421": {
      "main": [
        []
      ]
    },
    "306a72d8-17cb-491e-ab71-563d67033dc4": {
      "main": [
        [
          {
            "node": "cc185a48-6793-4dea-ab4b-1a4227391552",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "7ad58632-aaae-49d1-8a4d-192696ea5fbe",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
よくある質問

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

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

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

中級 - ファイル管理

有料ですか?

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

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

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

作成者
Zain Ali

Zain Ali

@zain104

Software Engineer with over 3+ years of experience in full-stack development.

外部リンク
n8n.ioで表示

このワークフローを共有

カテゴリー

カテゴリー: 34