In the webapp, Notion, I have two databases: Areas DB and Topics DB. Entries in the Topics DB are related to entries in the Areas DB, essentially Topics are categorized into Areas. If I tag something with a certain Topic entry, can I have the related Area be automatically applied?
Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Yes, you can achieve this automation in Notion using a combination of Relation properties, Rollup properties, and a bit of clever setup. Here's a step-by-step guide to automatically apply the related Area to a Topic-tagged entry:
Assumptions:
You have two databases: Areas DB (e.g., Areas) and Topics DB (e.g., Topics).
In Topics DB, you have a Relation property that connects each Topic to an Area in Areas DB (e.g., Related Area).
You want to automatically apply the related Area to any page (e.g., a Task, Note, or any other type of entry) when you tag it with a specific Topic.
Setup:
1. In Topics DB:
* Ensure you have a Relation property named Related Area (or similar) that connects each Topic to an Area in Areas DB.
* Create a new Rollup property named Area Name (or similar) with the following settings:
+ Roll up: Related Area (the Relation property)
+ Show: Name (of the related Area)
+ Array formatting: Concatenate (this will display the Area name as a single text value)
This Rollup property will fetch the name of the related Area for each Topic.
2. In your target database (e.g., Tasks DB, Notes DB, or any other DB where you'll be tagging Topics):
* Create a new Relation property named Topics (or similar) that connects your target database entries to Topics DB.
* Create another Relation property named Areas (or similar) that connects your target database entries to Areas DB. Leave this relation empty for now.
* Create a new Rollup property named Auto Area (or similar) with the following settings:
+ Roll up: Topics (the Relation property to Topics DB)
+ **Then roll up: Area Name(the Rollup property from Topics DB, created in step 1) + **Show**:Array(yes, Array! We'll get to this) + **Array formatting**:Concatenate` (again, to display as a single text value)
This nested Rollup property will:
1. Look at the Topics tagged (Topics relation)
2. Fetch the related Area names for each Topic (Area Name rollup from Topics DB)
3. Concatenate the Area names into a single text value
The magic happens here:
* Create a Formula property named Auto Apply Area (or similar) with the following formula:
Here's what this formula does:
1. not empty(prop("Auto Area")): checks if Auto Area rollup has a value (i.e., at least one Topic is tagged)
2. If true, relation(prop("Auto Area"), "Areas"): creates a new relation to Areas DB using the concatenated Area name(s) from Auto Area. This effectively "links" the Area(s) to your target database entry.
3. If false (no Topics tagged), returns an empty array []
Final step:
* In the Areas Relation property (from step 2), click the three dots (...) next to the property name and select "Mirror from Auto Apply Area".
* Confirm that you want to mirror the values.
What happens now:
When you tag a Topic in your target database entry (via the Topics relation), the Auto Area rollup will fetch the related Area name(s) from Topics DB.
The Auto Apply Area formula checks if Auto Area has a value. If it does, it creates a new relation to the corresponding Area(s) in Areas DB.
The mirroredAreas relation property will automatically update with the linked Area(s), reflecting the value from Auto Apply Area.
Voilà! When you tag a Topic, the related Area will be automatically applied to your target database entry.
Example:
Suppose you have:
Areas DB: Marketing, Sales, Product
Topics DB:
Topic 1 (related to Marketing)
Topic 2 (related to Sales)
Topic 3 (related to Product)
Tasks DB (target database):
Task Launch Campaign with tagged Topics: Topic 1, Topic 3
The automation will:
Auto Area rollup: Marketing, Product (concatenated Area names)
Auto Apply Area formula: links Marketing and Product Areas to the Task
MirroredAreas relation: now shows Marketing, Product as linked Areas