We don’t have an example. However, you need to carry out the following steps:
Create a Trusted Application Object
Use GroupWise.CreateTrustedApplicationObjectEx() to obtain a trusted application key. You need to protect the key, as it provides access to your GroupWise system. Search for ‘CreateTrustedApplicationObjectEx’ in the Language Guide for details.
Set the Credentials
You need to tell GroupWise you are about to use the Trusted application key by calling GroupWise.Session.SetTrustedApplicationCredentials(). You pass it the application name and key used/obtained by CreateTrustedApplicationObjectEx() above.
Login to the Account
Use the Object API to access the account. You need to use the Multilogin to get an account object:
set oAccount = GroupWise.Session.Multilogin(“UserID”, “”, null, fgwNeverPrompt, null)
Once you have the users account object you can locate the appropriate address book and perform the appropriate tasks. This is all done via the GroupWise Object API, which is beyond the scope of what can be explained here. Have a look at http://developer.novell.com/ndk/doc/gwobjapi/gwobjenu/data/hyfolkga.html as a starting point.
I hope this helps.