VBScript: How to return the Organizer of a Meeting

  • Thread starter Thread starter Dwight Nelson
  • Start date Start date
D

Dwight Nelson

I'm trying to get the organizer to be returned in a
meeting item that is newly created in a form. When I use
the item.organizer property it is empty when the
Item_Open event is fired. Later on after the meeting
item has been sent the organizer property seems to be
initialzed with the correct value.

If I look at the Scheduling tab of the meeting, the
organizer is listed at the top but it does not come back
to me in the property.

Any ideas?

Thanks, Dwight
 
Is the form saved? Organizer isn't initialized until the form is saved
or sent.
 
The form is saved but the item is not sent. I can see
the organizer listed on the scheduling tab but the
item.organizer is not initialized. What I really need it
the name of the mailbox that is being used for
scheduling. I used to use the caption field but this
does not alway work in Outlook 2003.
 
Mailbox name can be gotten easily if you have a handle to the Inbox.
If oInbox is an Outlook.MAPIFolder that is instantiated to the Inbox
use code something like this:

Dim oTopOfStore As Outlook.MAPIFolder
Set oTopOfStore = oInbox.Parent
strMailboxName = oTopOfStore.Name

That will return something like "Mailbox - Ken Slovak". You can parse
that if you want to get the mailbox alias.
 
The appointment item is new and has not yet been sent. The form is
published to the organzational forms library and is the default form being
used for the calendar in question. In the past I have used the
Application.ActiveExplorer.Caption in to determine the name of the mailbox
being used. However with Outlook 2003 the Open other users folder opens the
calendar in the same explorer window as the original user's mailbox so the
caption property does not always work.

Thanks for your time.
 
Yes, that's a problem in Outlook 2003. Does CalendarFolder.Parent.Name
do anything for you?
 
Back
Top