Sam654
asked on
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
Thanks
You can use the LS function (that gets user's document from NAB) from my comment here:
https://www.experts-exchange.com/questions/25581063/Get-email-address-from-full-name-by-lotusscript.html
https://www.experts-exchange.com/questions/25581063/Get-email-address-from-full-name-by-lotusscript.html
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.
ASKER
If I was to use the formula @MailDbName to get the users mail file, how could I then get the users email address?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Sorry... That should have been "info about the user's mail database, NOT the Domino Directory".
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...
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...
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.
So, yes, if you're using only formulas, that is simpler way to go.
ASKER
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.
https://www.experts-exchange.com/questions/26632680/Lookup-Email-from-NAB-using-first-name-and-last-name-ONLY.html
https://www.experts-exchange.com/questions/26632680/Lookup-Email-from-NAB-using-first-name-and-last-name-ONLY.html
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.GetUserI