Type/to search
Nodes
Manual Trigger
Schedule Trigger
RSS Feed Trigger
Kline Close Trigger
Discord Trigger
Telegram Trigger
Slack Trigger
AI Agent
Sentiment Analysis
MCP Client
OpenAI Model
Anthropic Chat Model
Code Tool
HTTP Request Tool
MCP Client Tool
Code
HTTP Request
Edit Fields (Set)
Filter
IF
Loop Over Items
Merge
Aggregate
Compare Datasets
Convert to File
Crypto
Database
Extract from File
HTML
Limit
Log
No Operation, do nothing
RSS Read
Read Files from Disk
Remove Duplicates
Rename Keys
S3
Sort
Split Out
Stop And Error
Summarize
Switch
Telegram
Wait
Write Files To Disk
XML
App push
DingTalk Robot
Discord Bot
Email
Feishu Custom Bot
Slack
Account Info
Market Info
Trading Executor
Indicator
Trading Plugin
Credentials


Use the Edit Fields node to set workflow data. This node can set new data as well as overwrite existing data. This node is essential for workflows that expect incoming data from previous nodes, such as when inserting values into Google Sheets or databases.

Node parameters

These are the settings and options available in the Edit Fields node.

Mode

You can either use Manual Mapping to edit fields through the GUI or JSON Output to write JSON that will be added to the input data.

Fields to Set

If you select Mode > Manual Mapping, you can configure fields by dragging and dropping values from INPUT.

The default behavior when you drag a value is:

  • The system sets the value's name as the field name.
  • The field value contains an expression that accesses the value.

If you don't want to use expressions:

  1. Hover over a field. The Fixed | Expressions toggle will appear.
  2. Select Fixed.

You can apply this to both the name and value of the field.

Keep Only Set Fields

Enable this option to discard any input data that you don't use in Fields to Set.

Include in Output

Choose which input data to include in the node's output data.

Node options

Use these options to customize the node's behavior.

Include Binary Data

If the input data includes binary data, choose whether to include it in the Edit Fields node's output data.

Ignore Type Conversion Errors

Manual Mapping only.

Enabling this option allows the node to ignore certain data type errors when mapping fields.

Support Dot Notation

By default, dot notation is supported.

For example, when using manual mapping, the node follows dot notation for the Name field. This means if you set the name in the Name field as number.one and the value in the Value field as 20, the resulting JSON is:

json
{ "number": { "one": 20 } }

You can disable this behavior by selecting Add Option > Support Dot Notation and setting the Dot Notation field to off. The resulting JSON will then be:

json
{ "number.one": 20 }

Arrays and expressions in JSON Output mode

You can use arrays and expressions when creating your JSON Output.

For example, given this input data generated by the Customer Datastore node:

json
[ { "id": "23423532", "name": "Jay Gatsby", "email": "[email protected]", "notes": "Keeps asking about a green light??", "country": "US", "created": "1925-04-10" }, { "id": "23423533", "name": "José Arcadio Buendía", "email": "[email protected]", "notes": "Lots of people named after him. Very confusing", "country": "CO", "created": "1967-05-05" }, { "id": "23423534", "name": "Max Sendak", "email": "[email protected]", "notes": "Keeps rolling his terrible eyes", "country": "US", "created": "1963-04-09" }, { "id": "23423535", "name": "Zaphod Beeblebrox", "email": "[email protected]", "notes": "Felt like I was talking to more than one person", "country": null, "created": "1979-10-12" }, { "id": "23423536", "name": "Edmund Pevensie", "email": "[email protected]", "notes": "Passionate sailor", "country": "UK", "created": "1950-10-16" } ]

Add the following JSON in the JSON Output field, with Include in Output set to All Input Fields:

json
{ "newKey": "new value", "array": [{{ $json.id }},"{{ $json.name }}"], "object": { "innerKey1": "new value", "innerKey2": "{{ $json.id }}", "innerKey3": "{{ $json.name }}", } }

You will receive this output:

json
[ { "id": "23423532", "name": "Jay Gatsby", "email": "[email protected]", "notes": "Keeps asking about a green light??", "country": "US", "created": "1925-04-10", "newKey": "new value", "array": [23423532, "Jay Gatsby"], "object": { "innerKey1": "new value", "innerKey2": "23423532", "innerKey3": "Jay Gatsby" } }, { "id": "23423533", "name": "José Arcadio Buendía", "email": "[email protected]", "notes": "Lots of people named after him. Very confusing", "country": "CO", "created": "1967-05-05", "newKey": "new value", "array": [23423533, "José Arcadio Buendía"], "object": { "innerKey1": "new value", "innerKey2": "23423533", "innerKey3": "José Arcadio Buendía" } }, { "id": "23423534", "name": "Max Sendak", "email": "[email protected]", "notes": "Keeps rolling his terrible eyes", "country": "US", "created": "1963-04-09", "newKey": "new value", "array": [23423534, "Max Sendak"], "object": { "innerKey1": "new value", "innerKey2": "23423534", "innerKey3": "Max Sendak" } }, { "id": "23423535", "name": "Zaphod Beeblebrox", "email": "[email protected]", "notes": "Felt like I was talking to more than one person", "country": null, "created": "1979-10-12", "newKey": "new value", "array": [23423535, "Zaphod Beeblebrox"], "object": { "innerKey1": "new value", "innerKey2": "23423535", "innerKey3": "Zaphod Beeblebrox" } }, { "id": "23423536", "name": "Edmund Pevensie", "email": "[email protected]", "notes": "Passionate sailor", "country": "UK", "created": "1950-10-16", "newKey": "new value", "array": [23423536, "Edmund Pevensie"], "object": { "innerKey1": "new value", "innerKey2": "23423536", "innerKey3": "Edmund Pevensie" } } ]

Forums
PINE Language
Get the app
iPhone Download
© 2015 - ∞ INVENTOR PTE LTD (SG)