How to lookup a users email address in a Notes Application

Writing a little app and I want to lookup a users email address from the NAB. Don't have designer access to the NAB. From memory it's either $VIMPeople or $Users that are best too lookup to and should the key (users name) be hierachical or abbreviated?

Thanks
LVL 7
Sam654Asked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
Bill-HansonConnect With a Mentor Commented:
@MailDbName returns info about the user's mail database, but the Domino Directory.

Luckily, there's a handy @formula that performs look-ups to the Directory automatically...

    @NameLookup([ForceUpdate];@UserName;"InternetAddress")
0
 
CRAKCommented:
If you open the addressbook using CTRL + SHIFT + View > Goto, you can access the views. I have always preferred "($Users)" over "($VIMPeople)" as it contains a number of name.
Mind that you can always create a local copy (without ACL) of the NAB to checkout the design, or use (a copy of) the template for that purpose!

Another approach is the use of @MailDbName, or notesRegistration.GetUserInfo(). It's best to check designer help on the latter!
0
 
mbonaciCommented:
You can use the LS function (that gets user's document from NAB) from my comment here:

http://www.e-e.com/Q_25581063.html
0
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
Bill-HansonCommented:
I prefer using ($Users) since you can look-up by first name, last name, email address, full name, short name, abbreviated name, or common name.
0
 
Sam654Author Commented:
If I was to use the formula @MailDbName to get the users mail file, how could I then get the users email address?
0
 
Bill-HansonCommented:
Sorry... That should have been "info about the user's mail database, NOT the Domino Directory".
0
 
mbonaciCommented:
The connection between mail db and e-mail is the user document in Name and Address book (names.nsf).
Since you're using @MailDbName, which gets the mail db of the currently logged-in user, I suggest you use the function I mentioned, cuz' it gets currently logged-in user's document in NAB.

Then get the e-mail from the document it returns, as it is explained bellow the function.

Nevertheless, if you have additional questions, ask...
0
 
mbonaciCommented:
Ups, I haven't seen those last three comments before posting.
So, yes, if you're using only formulas, that is simpler way to go.
0
 
Sam654Author Commented:
Nice, didn't know about that @Function and like it. Unfortunalty I'm not able to use it and have opened another question detailing why etc. Will be using Lotus Script for this next bit. Link to new question below.

http://www.experts-exchange.com/Software/Office_Productivity/Office_Suites/Lotus_SmartSuite/Lotus_Notes/Q_26632680.html

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.