Baserow keeps your data organized, but sometimes you need to dig a little deeper. That’s where row IDs come in. Row IDs are unique codes assigned to each record in your rows in a table. They offer a powerful way to manage, automate, and collaborate on your information.
This tutorial will cover how to optimize your workflow with row IDs in Baserow.
In this tutorial, we’ll cover how to view and use these unique identifiers, unlocking powerful functionalities within your table. We’ll cover the following steps:
To complete this tutorial, you’ll need the following:
Let’s explore how to do just that.
A row ID is a number that uniquely identifies that row of data. Note that, the row ID is not intended to count the number of rows in a table.
Unlike row count, which can change with sorting, row IDs are permanent and never deleted. When a row is deleted, the rows that remain are not renumbered. The assigned number is permanently attached to a row and cannot be changed or deleted, even after the row is deleted. The numbering may then have gaps as a result.
Here’s why row IDs might be useful:
{row_id}
to include the newly created row id in the URL.The row ID is visible in the grid view. Note that, if you switch to a different view (like Kanban or Form), the row ID column will disappear. But they’re always there, ready to be revealed when you need them.
Let’s explore how this works in a table.
Log in to your existing Baserow account or create a new account if you don’t have one already.
Once you log in, you can access the dashboard to add workspaces and databases. You can work with an existing workspace, database, or table, set up a new workspace from scratch or choose a template from our template library.
If you’re just starting with Baserow, we recommend you read our support article on how to create a workspace and how to add collaborators to a workspace.
Let’s use the Project tracker template from the template library.
To add a template, click on the Use this template button to add the template to the workspace:
That’s it! we’ve successfully created a new database with tables. Now we can populate, manage, and organize data in Baserow.
Now let’s peek in the address bar. Enlarge a row in full view and look at your browser’s address bar. You’ll see a URL structure like https://baserow.io/database/www/table/xxxxx/yyyy/row/zz
. The zz part is your coveted row ID!
Those long IDs in the website address (URL) can be hard to use. It would be easier to have the ID displayed directly within the table itself. We can do this by adding a formula field to the table.
For easier access, you can add a dedicated field to display row IDs within your table. This formula field will automatically display the unique ID for each row, making it much easier to reference and manage your data.
row_id()
. This formula automatically retrieves the unique ID for each record.Now, you’ll see a new column displaying each row’s unique ID.
Using row IDs in Baserow takes your table to the next level. These unique identifiers for each row unlock a world of organization, automation, and efficiency. By understanding row IDs, you can manage your data with pinpoint accuracy and complete control, ultimately streamlining your workflow.
The following articles may also be helpful:
In case you’ve run into an issue while following this tutorial, feel free to reach out to ask for help in the Baserow community.