拆分(Split Out)#
使用拆分节点将包含列表的单个数据项分隔为多个项。例如,一个客户列表,如果你想将其拆分,使每个客户都有一个独立的数据项。
🌐 Use the Split Out node to separate a single data item containing a list into multiple items. For example, a list of customers, and you want to split them so that you have an item for each customer.
节点参数(Node parameters)#
使用以下参数配置此节点。
🌐 Configure this node using the following parameters.
要拆分的字段(Field to Split Out)#
输入包含要拆分为单个项目的列表的字段。
🌐 Enter the field containing the list you want to separate out into individual items.
如果你正在处理二进制数据输入,在表达式中使用 $binary 来设置要拆分的字段。
🌐 If you're working with binary data inputs, use $binary in an expression to set the field to split out.
包含(Include)#
选择是否以及如何让 n8n 保留每个新条目的输入数据中的其他字段。
🌐 Select whether and how you want n8n to keep any other fields from the input data with each new individual item.
你可以选择:
🌐 You can select:
- 无其他字段:不会包含其他字段。
- 所有其他字段:所有其他字段将被包含在内。
- 选择的其他字段:仅包括所选字段。
- 要包含的字段:输入要包含的字段,用逗号分隔。
节点选项(Node options)#
禁用点号表示法(Disable Dot Notation)#
默认情况下,n8n 启用点符号来引用格式为 parent.child 的子字段。使用此选项可以禁用点符号(开启状态)或继续使用点符号(关闭状态)。
🌐 By default, n8n enables dot notation to reference child fields in the format parent.child. Use this option to disable dot notation (turned on) or to continue using dot (turned off).
目标字段名称(Destination Field Name)#
输入拆分后的字段内容应放置在输出中的字段。
🌐 Enter the field in the output where the split field contents should go.
包含二进制(Include Binary)#
选择是否将输入中的二进制数据包含在新的输出中(已开启)或不包含(已关闭)。
🌐 Choose whether to include binary data from the input in the new output (turned on) or not (turned off).
模板和示例(Templates and examples)#
相关资源(Related resources)#
Learn more about data structure and data flow in n8n workflows.