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
-
- 121
- 0
- Oct 3
-
- 310
- 0
- Aug 12
-
- 353
- 0
- Aug 7
-
- 464
- 0
- Jul 17
-
- 1550
- 0
- Apr 14
-
- 1056
- 0
- Apr 10
-
- 1079
- 0
- Apr 7
-
- 1027
- 0
- Apr 6
- see all
Recent Activities
freelancerops answered 8 hours ago
Recurring bills - monthly valuesfreelancerops answered 10 hours ago
Budget by month (Rollup adding all months, can't s…freelancerops answered 13 hours ago
How do i rollup by monthsfreelancerops answered 17 hours ago
How might I create a header/detail page?freelancerops answered 1 day ago
Linking Databases
...

