itemMatching()の例
初級
これはBuilding Blocks分野の自動化ワークフローで、0個のノードを含みます。 itemMatching()の使用例
前提条件
- •特別な前提条件なし、インポートしてすぐに使用可能
使用ノード (0)
一致するワークフローが見つかりません
カテゴリー
ワークフロープレビュー
ノード接続関係を可視化、ズームとパンをサポート
ワークフローをエクスポート
以下のJSON設定をn8nにインポートして、このワークフローを使用できます
{
"id": "gkOayLvJnwcTiHbk",
"meta": {
"instanceId": "bd0e051174def82b88b5cd547222662900558d74b239c4048ea0f6b7ed61c642"
},
"name": "itemMatching() example",
"tags": [],
"nodes": [
{
"id": "ba0e23f6-aec6-4c22-8e7c-ab4fc65c7767",
"name": "「ワークフローを実行」クリック時",
"type": "n8n-nodes-base.manualTrigger",
"position": [
640,
500
],
"parameters": {},
"typeVersion": 1
},
{
"id": "8434c3b4-5b80-48e5-803b-b84eb750b2c5",
"name": "顧客データストア (n8n training)",
"type": "n8n-nodes-base.n8nTrainingCustomerDatastore",
"position": [
880,
500
],
"parameters": {
"operation": "getAllPeople",
"returnAll": true
},
"typeVersion": 1
},
{
"id": "4750754a-92a6-44d2-a353-22fbb51a4d00",
"name": "コード",
"type": "n8n-nodes-base.code",
"position": [
1440,
500
],
"parameters": {
"language": "python",
"pythonCode": "for i,item in enumerate(_input.all()):\n _input.all()[i].json.restoreEmail = _('Customer Datastore (n8n training)').itemMatching(i).json.email\n\nreturn _input.all();"
},
"typeVersion": 2
},
{
"id": "9ac437bd-0d0d-4d92-845a-a1c9a7976d4d",
"name": "フィールド編集",
"type": "n8n-nodes-base.set",
"position": [
1180,
500
],
"parameters": {
"fields": {
"values": [
{
"name": "name",
"stringValue": "={{ $json.name }}"
}
]
},
"include": "none",
"options": {}
},
"typeVersion": 3.2
},
{
"id": "d59c512c-2dca-4960-b287-b4908713b0a3",
"name": "付箋",
"type": "n8n-nodes-base.stickyNote",
"position": [
820,
400
],
"parameters": {
"height": 304,
"content": "## Generate example data"
},
"typeVersion": 1
},
{
"id": "fad37032-13cc-461e-b48e-a2f470d07823",
"name": "付箋1",
"type": "n8n-nodes-base.stickyNote",
"position": [
1100,
398
],
"parameters": {
"height": 303,
"content": "## Reduce the data\n\nRemove all data except the names"
},
"typeVersion": 1
},
{
"id": "d0751fce-d9f0-40bf-aeb2-9dbc5d0e9bdb",
"name": "付箋2",
"type": "n8n-nodes-base.stickyNote",
"position": [
1380,
400
],
"parameters": {
"height": 304,
"content": "## Restore\n\nRestore the email address data"
},
"typeVersion": 1
},
{
"id": "2b1a67e9-60d6-411e-8ae7-94b02da6be34",
"name": "付箋3",
"type": "n8n-nodes-base.stickyNote",
"position": [
430,
220
],
"parameters": {
"width": 352,
"height": 264,
"content": "## About this workflow\n\nThis workflow provides a simple example of how to use `itemMatching(itemIndex: Number)` in the Code node to retrieve linked items from earlier in the workflow.\n\nThis example uses JavaScript. Refer to [Retrieve linked items from earlier in the workflow](https://docs.n8n.io/code/cookbook/builtin/itemmatching/) for the Python code.\n"
},
"typeVersion": 1
}
],
"active": false,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "02e18c8e-1bec-4170-a2d0-72ec6e063273",
"connections": {
"9ac437bd-0d0d-4d92-845a-a1c9a7976d4d": {
"main": [
[
{
"node": "4750754a-92a6-44d2-a353-22fbb51a4d00",
"type": "main",
"index": 0
}
]
]
},
"ba0e23f6-aec6-4c22-8e7c-ab4fc65c7767": {
"main": [
[
{
"node": "8434c3b4-5b80-48e5-803b-b84eb750b2c5",
"type": "main",
"index": 0
}
]
]
},
"8434c3b4-5b80-48e5-803b-b84eb750b2c5": {
"main": [
[
{
"node": "9ac437bd-0d0d-4d92-845a-a1c9a7976d4d",
"type": "main",
"index": 0
}
]
]
}
}
}よくある質問
このワークフローの使い方は?
上記のJSON設定コードをコピーし、n8nインスタンスで新しいワークフローを作成して「JSONからインポート」を選択、設定を貼り付けて認証情報を必要に応じて変更してください。
このワークフローはどんな場面に適していますか?
初級 - ビルディングブロック
有料ですか?
このワークフローは完全無料です。ただし、ワークフローで使用するサードパーティサービス(OpenAI APIなど)は別途料金が発生する場合があります。
関連ワークフロー
URLからCSVをGoogleSheetにインポートする
URLからCSVをGoogle Sheetsにインポート
0 ノードn8n Team
ビルディングブロック
複数のCSVをGoogleSheetにインポートする
複数のCSVファイルをGoogle Sheetsにインポート
0 ノードn8n Team
ビルディングブロック
言語ベースでユーザー挨拶をマージ
言語に基づいてユーザーの挨拶を結合
Merge
Function
Manual Trigger
Merge
Function
Manual Trigger
4 ノードn8n Team
ビルディングブロック
AIエージェントチャット
AIエージェントチャットシステム
Agent
Chat Trigger
Tool Serp Api
+
Agent
Chat Trigger
Tool Serp Api
5 ノードn8n Team
人工知能
fal.aiを基盤としたテキストからAI画像生成
fal.aiプラットフォームを利用したテキストからAI画像への変換ツール
If
Wait
Webhook
+
If
Wait
Webhook
12 ノードn8n Team
Pipedrive製品を追加するときにStripeで新製品を追加
Pipedriveで製品を追加する際にStripeでも新しい製品を追加
Set
Merge
Item Lists
+
Set
Merge
Item Lists
7 ノードn8n Team
営業
ワークフロー情報
難易度
初級
ノード数0
カテゴリー1
ノードタイプ0
作成者
n8n Team
@n8n-teamMeet the official n8n team. We specialize in building workflows that transform intricate tasks into seamless operations.
外部リンク
n8n.ioで表示 →
このワークフローを共有