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
Notion Answers
Help between Notion users
Register & Ask
It's free & easy
Get answers
Answers, votes & comments
Vote and select answers
Receive points, vote and give the solution
Question
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
-
- 30
- 0
- 19 hours ago
-
- 88
- 0
- 5 days ago
-
- 101
- 0
- Sep 4
-
- 91
- 1
- Aug 29
-
- 72
- 1
- Aug 26
-
- 379
- 1
- Jul 4
-
- 598
- 1
- May 14
-
- 456
- 1
- May 9
- see all
Exclusive for Notion Answers Users
- • Dynamic Calendar Icon | Info | Download
- Add yours here
Recent Activities
carlote asked 19 hours ago
I have a block with writing "No Access". Unable t…notionhq selected an answer 3 days ago
Fatal error during installationgoatqueen asked 5 days ago
Filter & calculate attendance every yearnotionhq selected an answer 5 days ago
How I can auto fill a data base with consecutive n…polle commented Sep 9
Need help with a time formula
...