itemMatching()示例
初级
这是一个Building Blocks领域的自动化工作流,包含 0 个节点。 itemMatching()使用示例
前置要求
- •无特殊前置要求,导入即可使用
使用的节点 (0)
没有找到匹配的工作流
分类
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"id": "gkOayLvJnwcTiHbk",
"meta": {
"instanceId": "bd0e051174def82b88b5cd547222662900558d74b239c4048ea0f6b7ed61c642"
},
"name": "itemMatching() 示例",
"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 培训)",
"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": "## 生成示例数据"
},
"typeVersion": 1
},
{
"id": "fad37032-13cc-461e-b48e-a2f470d07823",
"name": "便签1",
"type": "n8n-nodes-base.stickyNote",
"position": [
1100,
398
],
"parameters": {
"height": 303,
"content": "## 精简数据"
},
"typeVersion": 1
},
{
"id": "d0751fce-d9f0-40bf-aeb2-9dbc5d0e9bdb",
"name": "便签2",
"type": "n8n-nodes-base.stickyNote",
"position": [
1380,
400
],
"parameters": {
"height": 304,
"content": "## 恢复"
},
"typeVersion": 1
},
{
"id": "2b1a67e9-60d6-411e-8ae7-94b02da6be34",
"name": "便签3",
"type": "n8n-nodes-base.stickyNote",
"position": [
430,
220
],
"parameters": {
"width": 352,
"height": 264,
"content": "## 关于此工作流"
},
"typeVersion": 1
}
],
"active": false,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "02e18c8e-1bec-4170-a2d0-72ec6e063273",
"connections": {
"Edit Fields": {
"main": [
[
{
"node": "Code",
"type": "main",
"index": 0
}
]
]
},
"When clicking \"Execute Workflow\"": {
"main": [
[
{
"node": "Customer Datastore (n8n training)",
"type": "main",
"index": 0
}
]
]
},
"Customer Datastore (n8n training)": {
"main": [
[
{
"node": "Edit Fields",
"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
4 节点n8n Team
构建模块
使用简单向量存储、表单触发器和OpenAI的RAG入门模板
使用简单向量存储、表单触发器和OpenAI的RAG入门模板
Form Trigger
Agent
Chat Trigger
+5
12 节点n8n Team
构建模块
将带标签的邮件发送到Notion数据库
将带标签的邮件发送到Notion数据库
0 节点n8n Team
构建模块
在 Stripe 和 Pipedrive 之间同步支付和客户数据
在 Stripe 和 Pipedrive 之间同步支付和客户数据
Set
Cron
Merge
+5
11 节点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 查看 →
分享此工作流