# Getting the Block Group, block id

**URL:** <https://forum.inductiveautomation.com/t/getting-the-block-group-block-id/4579>\
**Category:** Ignition\
**Created:** [June 5, 2012, 7:42pm UTC](https://forum.inductiveautomation.com/t/getting-the-block-group-block-id/4579 "2012-06-05T19:42:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![TimE](https://avatars.discourse-cdn.com/v4/letter/t/ee59a6/32.png) [@TimE](https://forum.inductiveautomation.com/u/TimE)\
**Post date:** [June 5, 2012, 7:42pm UTC](https://forum.inductiveautomation.com/t/getting-the-block-group-block-id/4579/1 "2012-06-05T19:42:50Z")

</div>

In a block group there is an option to store the block id to a column in a table. Is there a way to have that value returned to a tag?

Thanks,

---

<div class="post-metadata">

**Author:** ![James.Lorenz](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/james.lorenz/32/3290_2.png) [@James.Lorenz](https://forum.inductiveautomation.com/u/James.Lorenz)\
**Post date:** [June 5, 2012, 11:13pm UTC](https://forum.inductiveautomation.com/t/getting-the-block-group-block-id/4579/2 "2012-06-05T23:13:51Z")

</div>

You can use a query tag to get the block\_id from the database, and it will update somewhat in synchronization with your execution schedule depending on what scan class you give it.
