My team is looking to be able to reference tasks with a unique identifier (other than the name which isn't guaranteed to be unique). The Notion database id returned with id() isn't very user friendly. I'm looking for a formula or alternative method to auto-generate a more user-friendly but unique identifier for each task.
Connect
1 Answer
Ok, you can try this:
slice(replaceAll(format(id()), "[0-9]*", ""), 0, 4) + "." + slice(replaceAll(format(id()), "[0-9]*", ""), 4, 8)
It won't be always unique, but might be enough for your case.
You can check if its ok for your database comparing "count unique values" for this formula column with "count all" for any other.
If not, try to use combination with name, smth like:
prop("Name")+"."+slice(replaceAll(format(id()), "[0-9]*", ""), 0, 4)
Related questions
Without Answer
-
- 99
- 0
- 1 day ago
-
- 1148
- 1
- Apr 4
-
- 330
- 1
- Mar 20
-
- 373
- 0
- Mar 14
-
- 547
- 0
- Mar 8
-
- 296
- 0
- Feb 21
-
- 276
- 1
- Feb 14
-
- 368
- 0
- Feb 13
- see all
Recent Activities
joeythelemur asked 1 day ago
How can I better organize a LOT of properties?discossstick asked Apr 4
settings of font colour changed?polle answered Apr 2
Where can we send feature suggestion to Notion so …
...