/ Forums / Advansys Formativ / Creating Solutions with Formativ / Filter in GroupWise Address Book for logged-in user / Reply To: Filter in GroupWise Address Book for logged-in user

#6870
Support 1
Participant

The filter string should be quoted, and your email address field syntax is incorrect. Correct usage is as follows:

  set oEntry = oAddressBook.AddressBookEntries.Find("(<E-Mail Address> CONTAINS """ & UserId & """)")

The method Find returns a collection of address book entries. The code should read each address book entry from that collection. Correct usage is as follows:

  set oEntry = oEntries.Item(1)
  set oFieldObj = oEntry.Fields

If we only want the full name of the logged-in user, then there is no need to use the address book, which is very inefficient. We can do so as follows:

  msgbox "Name: " & groupwise.account.owner.displayname & vbcrlf & _
         "Email: " & groupwise.account.owner.emailaddress

I hope this helps.

Advansys Support