Novell is now a part of Micro Focus

Using the GroupWise Object API, how would I...

Articles and Tips: qna

01 Jan 2003


Q.

Using the GroupWise Object API, how would I create and populate a personal group in a personal address book?

A.

Use the procedure shown in the following code fragment:

Dim objBook As AddressBook
Dim objEntryG As AddressBookEntry
Dim objEntryU As AddressBookEntry
' no error checking, no checking for 	duplicates
Set objBook = objAccount.AddressBooks.Item(objAccoun t.Owner.DisplayName)
Set objEntryG = objBook.AddressBookEntries.Add("A Group",
                "", "", egwGroup)
Set objEntryU = objBook.AddressBookEntries.Add("A User",
                "someone@somewhere.com", "", egwUser)
	
Call objEntryG.Members.Add(objEntryU, 	egwTo)

* Originally published in Novell AppNotes


Disclaimer

The origin of this information may be internal or external to Novell. While Novell makes all reasonable efforts to verify this information, Novell does not make explicit or implied claims to its validity.

© Copyright Micro Focus or one of its affiliates