# hubdb - how do I print each row's id?

**URL:** <https://community.hubspot.com/t/hubdb-how-do-i-print-each-rows-id/7844>\
**Category:** CMS Development\
**Tags:** hubdb\
**Created:** [February 16, 2018, 5:20am UTC](https://community.hubspot.com/t/hubdb-how-do-i-print-each-rows-id/7844 "2018-02-16T05:20:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![John](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/john/32/43512_2.png) [@John](https://community.hubspot.com/u/John)\
**Post date:** [February 16, 2018, 5:20am UTC](https://community.hubspot.com/t/hubdb-how-do-i-print-each-rows-id/7844/1 "2018-02-16T05:20:43Z")

</div>

I cannot for the life of me get hubdb to print each row’s hubdb id.

```auto
{% set dynamic_page_hubdb_table_id = <id> %}
{% if dynamic_page_hubdb_table_id %}
 {% for row in hubdb_table_rows(dynamic_page_hubdb_table_id) %}
 {{ row.id }} {{ row.name }} {# the name prints, but the id does not #}
 {% endfor %} 
{% endif %}

```

 ![Screen Shot 2018-02-16 at 12.13.55 AM.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/a/5/a56edc443e58374c799a4c54d45ef0dd16cd369f.png)  
hubDB column names

What am I doing wrong? This is driving me crazy

---

<div class="post-metadata">

**Author:** ![John](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/john/32/43512_2.png) [@John](https://community.hubspot.com/u/John)\
**Post date:** [February 16, 2018, 5:40am UTC](https://community.hubspot.com/t/hubdb-how-do-i-print-each-rows-id/7844/2 "2018-02-16T05:40:22Z")

</div>

I finally found the answer for those of you who run into this in the future:

`{{ row.hs_id }}`

Maybe I’m just low on sleep lol.
