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
-
- 81
- 0
- 1 day ago
-
- 72
- 0
- 4 days ago
-
- 479
- 0
- Apr 29
-
- 444
- 1
- Mar 20
-
- 445
- 0
- Mar 14
-
- 400
- 0
- Feb 21
-
- 391
- 1
- Feb 14
-
- 447
- 0
- Feb 13
- see all
Recent Activities
jcarminio asked 1 day ago
Thoughts on adding Notion AI's web search access i…amandabee asked 4 days ago
Display backlinks in a block or page?amandabee answered 5 days ago
Counting Stars?polle answered 6 days ago
Counting Stars?amandabee answered 6 days ago
settings of font colour changed?
...