mirror of
https://github.com/n8n-io/n8n-docs.git
synced 2026-03-28 18:08:41 +07:00
19 lines
567 B
Markdown
19 lines
567 B
Markdown
# `$("<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"];
|
|
```
|