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
-
- 457
- 0
- Apr 14
-
- 368
- 0
- Apr 12
-
- 503
- 0
- Apr 11
-
- 309
- 0
- Apr 10
-
- 309
- 0
- Apr 7
-
- 308
- 0
- Apr 6
-
- 302
- 0
- Apr 4
-
- 293
- 0
- Apr 3
- see all
Recent Activities
notionbackups answered May 22
How to print or export note or page as pdf with fi…notionbackups answered May 22
How to fix messed up decimal numbers after import …pjbdr026 asked Apr 14
How do teams use Notion for collaboration?pjbdr026 asked Apr 12
CRM System in Notionpjbdr026 asked Apr 11
Dashboard Setup
...

