set.json•4.59 kB
{
"nodeType": "n8n-nodes-base.set",
"displayName": "Set",
"description": null,
"version": "3.4",
"properties": [
{
"name": "mode",
"displayName": "Mode",
"type": "options",
"default": "manual",
"description": "Edit item fields one by one",
"options": [
{
"name": "Manual Mapping",
"value": "manual",
"description": "Edit item fields one by one"
},
{
"name": "JSON",
"value": "raw",
"description": "Customize item output with JSON"
}
]
},
{
"name": "duplicateItem",
"displayName": "Duplicate Item",
"type": "boolean",
"default": false
},
{
"name": "duplicateCount",
"displayName": "Duplicate Item Count",
"type": "number",
"default": 0,
"description": "How many times the item should be duplicated, mainly used for testing and debugging",
"typeOptions": {
"minValue": 0
},
"displayOptions": {
"show": {
"duplicateItem": [
true
]
}
}
},
{
"name": "duplicateWarning",
"displayName": "Item duplication is set in the node settings. This option will be ignored when the workflow runs automatically.",
"type": "notice",
"default": "",
"displayOptions": {
"show": {
"duplicateItem": [
true
]
}
}
},
{
"name": "include",
"displayName": "Include in Output",
"type": "options",
"default": "all",
"description": "How to select the fields you want to include in your output items",
"options": [
{
"name": "All Input Fields",
"description": "Also include all unchanged fields from the input"
},
{
"name": "No Input Fields",
"description": "Include only the fields specified above"
},
{
"name": "Selected Input Fields",
"description": "Also include the fields listed in the parameter “Fields to Include”"
},
{
"name": "All Input Fields Except",
"description": "Exclude the fields listed in the parameter “Fields to Exclude”"
}
],
"displayOptions": {
"show": {
"@version": [
3,
3.1,
3.2
]
}
}
},
{
"name": "includeOtherFields",
"displayName": "Include Other Input Fields",
"type": "boolean",
"default": false,
"description": "Whether to pass to the output all the input fields (along with the fields set in 'Fields to Set')",
"displayOptions": {
"hide": {
"@version": [
3,
3.1,
3.2
]
}
}
},
{
"name": "includeFields",
"displayName": "Fields to Include",
"type": "string",
"default": "",
"description": "Comma-separated list of the field names you want to include in the output. You can drag the selected fields from the input panel.",
"placeholder": "e.g. fieldToInclude1,fieldToInclude2",
"displayOptions": {
"show": {
"include": [
"selected"
],
"@version": [
3,
3.1,
3.2
]
}
}
},
{
"name": "excludeFields",
"displayName": "Fields to Exclude",
"type": "string",
"default": "",
"description": "Comma-separated list of the field names you want to exclude from the output. You can drag the selected fields from the input panel.",
"placeholder": "e.g. fieldToExclude1,fieldToExclude2",
"displayOptions": {
"show": {
"include": [
"except"
],
"@version": [
3,
3.1,
3.2
]
}
}
},
{
"name": "options",
"displayName": "Options",
"type": "collection",
"default": {},
"description": "Whether binary data should be included if present in the input item",
"placeholder": "Add option",
"displayOptions": "{\n\t\t\t\t\t\thide: {\n\t\t\t\t\t\t\t'@version': [{ _cnd: { gte: 3.4 }"
}
],
"credentialsConfig": [],
"io": {
"inputs": [],
"outputs": [],
"outputNames": [],
"hints": {}
},
"wiring": {
"role": "generic",
"requires": [],
"optional": [],
"consumedBy": [],
"consumes": [],
"produces": []
}
}