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
-
- 40
- 0
- 3 days ago
-
- 85
- 0
- Aug 12
-
- 122
- 0
- Aug 7
-
- 219
- 0
- Jul 17
-
- 1279
- 0
- Apr 14
-
- 850
- 0
- Apr 12
-
- 1378
- 0
- Apr 11
-
- 798
- 0
- Apr 10
- see all
Recent Activities
renvik04 asked 3 days ago
How Can I Use Notion to Organize a Busy Work Workf…QMuzikDirektor asked Aug 12
Search Doesn't Seem To Worknotionbackups answered May 22
How to print or export note or page as pdf with fi…
...

