• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 874
  • Last Modified:

Creating unique id's in Lotus Notes

Today, I was approached by represenatives from my HR department. They want to include a function to create a unique id for all employees. It needs to be six characters and can be alpha-numeric. To be more efficient, I think I should produce a list of all posibilities and then start going sequentially through the list sequentially. I think this would work better then trying to randomly create an id, then checking to see if it has been used before.

I guess my first question is, any ideas on how to get Lotus Notes to produce this for me?

My second question is, got any better ideas?
0
NormCox
Asked:
NormCox
1 Solution
 
Bill-HansonCommented:
Use this function:

    @Right(@Unique; "-")

It is guaranteed to be unique and is 6 chars.  If you need it in LotusScript, use this:

    Evaluate({@Right(@Unique; "-")})(0)
0
 
NormCoxAuthor Commented:
I guess I never had read the first line in the @Unique entry in designer help. Thanks very much for you assistance.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now