Set Fields

action_set_fields · action · Data & Transform · Available · v1.0.0

Description

Shape an object by setting, renaming and removing MULTIPLE fields in one node — the n8n Set/Edit Fields equivalent, in pure JavaScript with dot-path support for nested fields.

⚙️ Configuration parameters

Fields shown in the editor when configuring the node. Generated directly from the NodeDefconfigFields.

FieldTypeRequiredDefaultDescription
source
Oggetto sorgente
expressionnoinputL'oggetto da modellare. Vuoto = usa l'input del nodo.
assignments
Imposta campi (percorso → valore)
key-valuenoOgni riga crea/sovrascrive un campo (dot-path supportato). Es. cliente.stato → attivo.
coerceTypes
Converti tipi automaticamente
booleannotrue"42"→numero, "true"→booleano, JSON→oggetto. Disattiva per tenere tutto come stringa.
renameFields
Rinomina campi (da → a)
key-valuenoSposta un campo da un percorso a un altro. Es. Email → email.
removeFields
Rimuovi campi
chip-listnoPercorsi dei campi da eliminare (separati da virgola).
keepOnly
Tieni solo i campi impostati
booleannoParte da un oggetto vuoto: il risultato contiene SOLO i campi che imposti (whitelist).

⬆️ Node output

Fields available to downstream nodes via $node.<alias>.json.<field>:

  • default

💡 Configuration example

JSON snippet of the node as it appears in the workflow. Values are derived fromdefaultValue and from required parameters.

{
  "id": "node-action_set_fields-1",
  "defId": "action_set_fields",
  "label": "Set Fields",
  "config": {
    "source": "input",
    "coerceTypes": true
  }
}

🔗 Related nodes in the same category

Ready to use Set Fields?

Available now on all FlowForge plans. Try it free without a credit card.

Start freeBrowse all nodes