数据编辑#
¥Data editing
n8n 允许你编辑 固定数据。这意味着你可以检查不同的场景,而无需设置每个场景并从外部系统发送相关数据。它使测试边界情况更容易。
¥n8n allows you to edit pinned data. This means you can check different scenarios without setting up each scenario and sending the relevant data from your external system. It makes it easier to test edge cases.
For development only
生产工作流执行不支持数据编辑。这是一个用于在开发过程中帮助测试工作流程的功能。
¥Data editing isn't available for production workflow executions. It's a feature to help test workflows during development.
编辑输出数据#
¥Edit output data
编辑输出数据:
¥To edit output data:
- 运行节点以加载数据。
¥Run the node to load data. 2. 在“输出”视图中,选择“JSON”以切换到 JSON 视图。
¥In the OUTPUT view, select JSON to switch to JSON view. 3. 选择“编辑”。
¥Select Edit {.off-glb}. 4. 编辑你的数据。
¥Edit your data. 5. 选择“保存”。n8n 会保存你的数据更改并锁定你的数据。
¥Select Save. n8n saves your data changes and pins your data.
使用先前执行的数据#
¥Use data from previous executions
你可以从先前工作流执行中的节点复制数据:
¥You can copy data from nodes in previous workflow executions:
- 打开左侧菜单。
¥Open the left menu. 2. 选择“执行”。
¥Select Executions. 3. 浏览工作流执行列表以找到包含要复制的数据的工作流。
¥Browse the workflow executions list to find the one with the data you want to copy. 4. 选择“打开过去的执行记录”。
¥Select Open Past Execution {.off-glb}. 5. 双击要复制其数据的节点。
¥Double click the node whose data you want to copy. 6. 如果是表格布局,请选择 JSON 以切换到 JSON 视图。
¥If it's table layout, select JSON to switch to JSON view. 7. 你可以通过两种方式复制 JSON:
¥There are two ways to copy the JSON:
8. 选中所需的 JSON 数据(类似于选择文本)。然后使用 ctrl + c 复制它。
¥Select the JSON you want by highlighting it, like selecting text. Then use ctrl + c to copy it.
9. 单击参数以选择要复制的 JSON 数据。然后:1.n8n 显示“复制
”按钮。2.3.
¥Select the JSON you want to copy by clicking on a parameter. Then: 1. Hover over the JSON. n8n displays the Copy {.off-glb} button. 2. Select Copy {.off-glb}. 3. You can choose what to copy:
-
复制项目路径和复制参数路径,即可获得访问 JSON 各个部分的表达式。
¥Copy Item Path and Copy Parameter Path gives you expressions that access parts of the JSON.
-
复制值:复制整个选定的 JSON。
¥Copy Value: copies the entire selected JSON. 10. 返回到你正在处理的工作流:
¥Return to the workflow you're working on: 1. 打开左侧菜单。
¥Open the left menu. 2. 选择“工作流”。
¥Select Workflows. 3. 选择“打开”。
¥Select Open. 4. 选择要打开的工作流。
¥Select the workflow you want to open. 11. 打开要使用复制数据的节点。
¥Open the node where you want to use the copied data. 12. 如果没有数据,请运行节点以加载数据。
¥If there is no data, run the node to load data. 13. 在“输出”视图中,选择“JSON”以切换到 JSON 视图。
¥In the OUTPUT view, select JSON to switch to JSON view. 14. 选择“编辑”。
¥Select Edit {.off-glb}. 15. 粘贴上次执行的数据。
¥Paste in the data from the previous execution. 16. 选择“保存”。n8n 会保存你的数据更改并锁定你的数据。
¥Select Save. n8n saves your data changes and pins your data.