Files
n8n-docs/docs/code-examples/methods-variables-examples/node.md
2023-07-18 15:33:16 +01:00

23 lines
599 B
Markdown

---
contentType: reference
---
# `$("<node-name>").item`
!!! info "Not avaialble in Code node"
`$("<node-name>").item` isn't available in the Code node.
Returns the data of a specified node.
```typescript
// Returns the fileName of binary property "data" of Node "HTTP Request"
const fileName = $("HTTP Request").item.binary["data"]["fileName"]}}
// Returns the value of the JSON data property "myNumber" of Node "Set"
const myNumber = $("Set").item.json['myNumber'];
// Returns the value of the parameter "channel" of Node "Slack"
const channel = $("Slack").item.parameter["channel"];
```