View Single Post
  #3  
Old August 19th 08, 03:31 PM posted to microsoft.public.developer.outlook.addins,microsoft.public.outlook.program_addins
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default "Unbooking" a resource in Outlook 2003

You can use the Receipient.FreeBusy method to return availability information
for the resource. Do that before you call Write.
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx



"Curtis Justus" wrote:

Hi there,

I have the following situation:

1. User creates appointment
2. User adds a resource
3. User fills out some custom information.

I need to validate the status of the appointment before allowing it to be
saved (i.e. cannot book more than one resource). Unfortunately, the
resource(s) are automatically booked before my validation code is called. I
have put code in the appointment.Write event and also the
OutlookApplication.ItemSend event. In actuality, the ItemSend event never
fires when the booking takes place. I believe the sequence goes as follows:

1. User clicks save / send.
2. Resource is booked.
3. Appointment.Write is fired.
4. OutlookApplication.ItemSend is fired.

I guess here are my questions:

1. Can I somehow get code in place where I can validate the appointment
before resources are booked?
2. Can I "unbook" a resource from within my appointment.Write event?

Thanks for your help,
cj


Ads