Page

Learn about the Page data type in Notion formulas.

The Page data type is specific to database properties that allow for other Notion to be selected or displayed, such as the RelationRollup, and Formula properties. When dealing with a Page data type, you can utilise the built-in Created By, Created Time, Last Edited By, and Last Edited Time properties.

prop("Created By") /* Output: "🧔🏻‍♂️ Thomas Frank" */ prop("Created Time") /* September 14, 2023 10:04 AM */ prop("Last Edited By") /* Output: "🧔🏻‍♂️ Thomas Frank" */ prop("Last Edited Time") /* September 14, 2023 12:59 PM */

You can also use the id function directly.

Once you have a Page data type to work with, you’ll be able to reference its own page properties directly. Let’s assume we have a Relation property with at least one page related. As pages in a relation property are listed in an array, the first example uses first to return only the first page, while the second example uses map to return a list of the Created By values for each page.

prop("Relation").first().prop("Created By") /* Output: "Thomas Frank" */ prop("Relation").map(current.prop("Created Time")) /* Output: ["@September 14, 2023 10:04 AM", "@September 12, 2023 09:17 PM"] */

Once again, the id function can be used to return the unique page ID of the related pages.

prop("Relation").first().id() /* Output: "6f65542cde7b4c548155474684281d15" */ prop("Relation").map(current.id()) /* Output: ["6f65542cde7b4c548155474684281d15", "781a4fd8e8f243828872c6a5b21d7d0c"] */
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