Meeting Requests in Outlook 2000

  • Thread starter Thread starter todd
  • Start date Start date
T

todd

When I programmatically create a meeting request in Outlook2000 and
add a resource, the resource is changing to a required attendee after
I adjust the meeting parameters (date, etc.)

outlookApp = new ActiveXObject("Outlook.Application");

nameSpace = outlookApp.getNameSpace("MAPI");

mailFolder = nameSpace.getDefaultFolder(9);

mailItem = mailFolder.Items.add('IPM.Appointment');

mailItem.MeetingStatus = (1);

mailItem.Body = "Request"

mailRecip = mailItem.Recipients.Add("Meeting Room");

mailRecip.Type(3)

mailRecip = mailItem.Recipients.Add("Litepro");

mailRecip.Type(3)

mailItem.Display(0)
 
I rewrote the function in VBScript and it does the same thing. It
works fine if I create the meeting manually. I tried your code (;)
below but that didn't help. When I execute the function, the meeting
request displays with the meeting room in the To: and Location: fields
then after about 3 seconds the address in To: resolves and the
Location: field goes blank.


------------------
function crAppt()

on error resume nextSet myOlApp = CreateObject("Outlook.Application")
Set myNameSpace = myOlApp.GetNameSpace("MAPI")
Set myCalendar = myNameSpace.GetDefaultFolder(9)
Set myItem = myOlApp.CreateItem(1)
myItem.MeetingStatus = "1"

Set myResourceAttendee = myItem.Recipients.Add("Meeting Room")
myResourceAttendee.Type = "3"

myItem.Display

end function
------------------------------------------

Thanks

Todd
 
"3" is an invalid value for the Type property. It needs to be the integer 3.
--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
Back
Top