Lotus Notes / Domino Designer 8 - 从电子邮件中获取用户名

时间:2010-08-10 16:27:17

标签: lotus-notes lotus-domino lotusscript

我有一大堆用户正在加入会议。它们包含在用户的地址簿和Notes服务器/主要公司地址簿中。一旦我有用户的电子邮件地址,有没有办法查找他们的用户名?

1 个答案:

答案 0 :(得分:1)

您可以在公司名称和地址簿(NAB)数据库中查找互联网电子邮件地址。我相信开箱即用,在NAB中有一个名为“Person / By Internet Email”的视图。在Notes代理中,您可以使用公式语言(使用@DBLookup)或脚本(使用notesView.getDocumentByKey)。或者您可以使用COM进行查找。

在脚本中,这看起来像是:

...
dim s as new notesSession, db as notesDatabase, vw as notesView, doc as notesDocument
set db = s.getDatabase (YOUR_SERVER, "names.nsf")
set vw = db.getView ("People\By Internet Mail")
set doc = vw.getDocumentByKey (EMAIL_ADDRESS_VALUE, true)
if not (doc is nothing) then
    sName = doc.FullName(0)
end if
....