APIs & Integrations

likwid
Participant

Get the last 3 rows of a a table in HubDB

How would I get the last 3 rows from a table in HubDB in Hubl or using the API?

Thanks

0 Upvotes
2 Replies 2
KCampbell
HubSpot Employee
HubSpot Employee

Get the last 3 rows of a a table in HubDB

Hi @likwid ,

    To start, can you tell me a bit more about your team's overall goal? Are these table rows in a .csv style spreadhseet, or is it an element somewhere within your website? Let me know and I can make recommendations accordingly!

All the best,
Kevin Campbell
HubSpot Support

0 Upvotes
likwid
Participant

Get the last 3 rows of a a table in HubDB

Hi Kevin,

I need to retreive just the last 3 rows of a table in Hubspot's HubDB.

{% for row in hubdb_table_rows(675332,"&orderBy=custom_ordering") %}

 

This oviously gets all the rows in a custom order. I just need the last 3.

Thanks for your help.

0 Upvotes