Meeting Requests in Outlook 2000

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)
 
T

todd

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
 
S

Sue Mosher [MVP]

"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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top