8
n8n 한국어amn8n.com

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": "Customer Datastore (n8n training)",
      "type": "n8n-nodes-base.n8nTrainingCustomerDatastore",
      "position": [
        880,
        500
      ],
      "parameters": {
        "operation": "getAllPeople",
        "returnAll": true
      },
      "typeVersion": 1
    },
    {
      "id": "4750754a-92a6-44d2-a353-22fbb51a4d00",
      "name": "Code",
      "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)는 사용자 직접 비용을 지불해야 할 수 있습니다.

워크플로우 정보
난이도
초급
노드 수0
카테고리1
노드 유형0
난이도 설명

n8n 초보자를 위한 1-5개 노드의 간단한 워크플로우

저자
n8n Team

n8n Team

@n8n-team

Meet the official n8n team. We specialize in building workflows that transform intricate tasks into seamless operations.

외부 링크
n8n.io에서 보기

이 워크플로우 공유

카테고리

카테고리: 34