# What's the proper approach instead of deprecated \`id()\` function, for selected \`$nodes\` in a Scene Action?

**URL:** https://community.neo4j.com/t/whats-the-proper-approach-instead-of-deprecated-id-function-for-selected-nodes-in-a-scene-action/65065
**Category:** Neo4j Bloom
**Created:** [November 23, 2023, 2:47pm UTC](https://community.neo4j.com/t/whats-the-proper-approach-instead-of-deprecated-id-function-for-selected-nodes-in-a-scene-action/65065 "2023-11-23T14:47:22Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![compl.yue](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/compl.yue/32/30106_2.png) [@compl.yue](https://community.neo4j.com/u/compl.yue)
#### Post date: [November 23, 2023, 2:47pm UTC](https://community.neo4j.com/t/whats-the-proper-approach-instead-of-deprecated-id-function-for-selected-nodes-in-a-scene-action/65065/1 "2023-11-23T14:47:22Z")

</div>

Tutorial ([Scene actions - Neo4j Bloom](https://neo4j.com/docs/bloom-user-guide/current/bloom-tutorial/scene-actions/)) still suggests `WHERE id(n) in $nodes` for operating on selected nodes, but Bloom correctly complain that deprecated `id()` function is used there. I tested that to simply substitute `id` with `elementId` and then it doesn't really work.

What's the proper approach nowadays?
