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
-
- 139
- 0
- Aug 12
-
- 181
- 0
- Aug 7
-
- 275
- 0
- Jul 17
-
- 1332
- 0
- Apr 14
-
- 910
- 0
- Apr 12
-
- 853
- 0
- Apr 10
-
- 833
- 0
- Apr 7
-
- 789
- 0
- Apr 6
- see all
Recent Activities
benarik answered Aug 27
Display backlinks in a block or page?benarik answered Aug 27
Can I see all inbound broken links in a public not…benarik answered Aug 27
Looking for clarity on copying DB keysbenarik answered Aug 26
How Can I Use Notion to Organize a Busy Work Workf…benarik answered Aug 26
Summarising transactions by week and until current…
...

