-
Topic
-
I am trying to get the Full Name field for the logged-in user from the GroupWise Address book (and not through an LDAP query to e-directory). The whole thing crashes with syntax errors on my attempt to Find, no matter if I include or exclude the brackets. Anything obvious I’m doing wrong here?
Sub Main(Client, GWEvent)
dim oField
dim oEntry
dim oFieldObj
dim oAddressBookset oAddressBook = GroupWise.Account.AddressBooks.Item(“Novell GroupWise Address Book”)
UserId=Groupwise.EnvUserID()
Set oEntry = oAddressBook.AddressBookEntries.Find(<EMailAddress> CONTAINS UserID)
if oEntry is nothing then
msgbox “oEntry is nothing. Quitting”
exit sub
end ifmsgbox “Name: ” & oEntry.DisplayName
Set oFieldObj = oEntry.Fields
Set FullName = oFiledObj.Item(23)End Sub
- You must be logged in to reply to this topic.