Create appt on delegated calendar... UserName?

Hello,

I’m opening a database of another user (that I’ve been delegated access to) and am creating appointment documents via the COM interface.

I notice that the following fields of the appointment document need to be filled out with either the name of the person creating the document, or the name of the database owner:

$AltPrincipal = calendar owner

$BusyName = calendar owner

$UpdatedBy = document creator

AltChair = calendar owner

Chair = calendar owner

From = document creator

Principal = calendar owner

Of course I can get the session.UserName for the person creating the document, but how can I determine the “UserName” of the delegated database I’ve opened?

Thanks.

Bill

Subject: This was answered in another forum…

In COM, I had to do this:

doc = db.GetProfileDocument(“CalendarProfile”)

MyArray = doc.GetItemValue(“Owner”)

Then I grabbed the first array element.

Bill