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

1vote

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.

1 Answer

1vote

hypnotionlabs Points520

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)

Please log in or register to answer this question.

...

Welcome to Notion Answers, where you can ask questions and receive answers from other members of the community.

Please share to grow the Notion Community!

Connect