id

Learn how to use the id function in Notion formulas.

The id() function returns the current row’s page ID, or the page ID of a specified page. This page ID is a unique string.

id() id(page) page.id()

The page ID can also be found at the end of a Notion page’s URL (before any query strings starting with ?).

id() outputs a string that is guaranteed to be unique for each page in a database. It is possible for all other properties – including Name – to contain the same value in multiple rows.

/* Page URL: <https://www.notion.so/thomasfrank/id-c5d67d15854744869cc4a062fb7b1377> */ id() /* Output: c5d67d15854744869cc4a062fb7b1377 */ prop("Related Pages").first().id() /* Output: c5d67d15854744869cc4a062fb7b1377 */

This example database uses the id() function and string concatenation to return the URL of each page within the database.

Notion – The all-in-one workspace for your notes, tasks, wikis, and databases.
A new tool that blends your everyday work apps into one. It’s the all-in-one workspace for you and your team
thomasfrank.notion.site
"https://www.notion.so/" + id()

This formula concatenates the string “https://www.notion.so/” with the output of the id() function using the add operator.

Other formula components used in this example:

add – Thomas Frank
thomasjfrank.com
About the Author

My name is Thomas Frank, and I'm a Notion-certified writer, YouTuber, and template creator. I've been using Notion since 2018 to organize my personal life and to run my business and YouTube channel. In addition to this formula reference, I've created a free Notion course for beginners and several productivity-focused Notion templates. If you'd like to connect, follow me on Twitter.

🤔 Have an UB Question?

Fill out the form below and I’ll answer as soon as I can! ~Thomas

🤔 Have a Question?

Fill out the form below and I’ll answer as soon as I can! ~Thomas