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
-
- 116
- 0
- Oct 3
-
- 301
- 0
- Aug 12
-
- 348
- 0
- Aug 7
-
- 457
- 0
- Jul 17
-
- 1533
- 0
- Apr 14
-
- 1048
- 0
- Apr 10
-
- 1067
- 0
- Apr 7
-
- 1018
- 0
- Apr 6
- see all
Recent Activities
freelancerops answered 7 hours ago
How can I update a related page when an action is …freelancerops answered 7 hours ago
Looking to create a proposal w/lists that automati…freelancerops answered 7 hours ago
How can I calculate minutes to add total hours (or…freelancerops answered 10 hours ago
How Can I Use Notion to Organize a Busy Work Workf…freelancerops answered 10 hours ago
How can I filter rollups to show only the most rec…
...

