Split In Batches node currentRunIndex example — n8n ワークフロー

複雑度 トリガー5個のノード🏷️ Miscellaneous👁 2,768回閲覧作成者:Harshil Agrawal

概要

This workflow demonstrates how to use currentRunIndex to get the running index.

Function node: This node generates mock data for the workflow. Replace it with the node whose data you want to split into batches.

SplitInBatches node: This node splits the data with the batch size equal to 1. Based on your use-case, set the value of the Batch Size.

IF node: This node checks the running index. If the running index equals 5 the node returns true and breaks the loop. The node uses the expression {

使用ノード

On clicking 'execute'FunctionSplitInBatchesIFSet

ワークフロープレビュー

O
On clicking 'execute'
F
Function
S
SplitInBatches
I
IF
S
Set
5 nodes5 edges

仕組み

  1. 1

    トリガー

    このワークフローは トリガー トリガーで開始します。

  2. 2

    処理

    データは 5 個のノードを流れます, connecting function, if, manualtrigger。

  3. 3

    出力

    ワークフローは自動化を完了し、設定された宛先に結果を配信します。

ノード詳細 (5)

ON

On clicking 'execute'

manualTrigger

#1
FU

Function

function

#2
SP

SplitInBatches

splitInBatches

#3
IF

IF

if

#4
SE

Set

set

#5

このワークフローのインポート方法

  1. 1右側の JSONをダウンロード ボタンをクリックしてワークフローファイルを保存します。
  2. 2n8nインスタンスを開き、ワークフロー → 新規 → ファイルからインポート に進みます。
  3. 3ダウンロードした split-in-batches-node-currentrunindex-example ファイルを選択し、インポートをクリックします。
  4. 4各サービスノードの 認証情報(APIキー、OAuthなど)を設定します。
  5. 5ワークフローをテスト をクリックして動作確認し、有効化します。

またはn8nの JSONからインポート に直接貼り付け:

{ "name": "Split In Batches node currentRunIndex example", "nodes": [...], ...}

インテグレーション

functionifmanualtriggersetsplitinbatches

このワークフローを取得

ワンクリックでダウンロード&インポート

JSONをダウンロードn8n.ioで見る
ノード5
複雑度low
トリガーtrigger
閲覧数2,768
カテゴリMiscellaneous

作成者

Harshil Agrawal

Harshil Agrawal

@harshil1712

タグ

functionifmanualtriggersetsplitinbatches

n8n初めてですか?

n8nは無料のオープンソースワークフロー自動化ツールです。セルフホストまたはクラウド版をご利用いただけます。

n8nを無料で始める →

Related Miscellaneous Workflows