![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
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 |
#2
|
|||
|
|||
![]()
"Booking" a resource adds that resource as a Recipient for the item, as a
Bcc recipient. There are no Recipient/Recipients events, but you can try handling the Item.Change() event. My guess is it won't fire in that case though until the item is saved or sent. You certainly can check the Recipients collection on Write() or Send() for any that are Recipient.Type == OlMeetingRecipientType.olResource (3). -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007. Reminder Manager, Extended Reminders, Attachment Options. http://www.slovaktech.com/products.htm "Curtis Justus" wrote in message ... 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 |
#3
|
|||
|
|||
![]()
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 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
"Do not have sufficient permission error" inviting resource | Bray | Outlook - Calandaring | 0 | September 24th 07 09:36 PM |
Outlook 2007 / 2003: Error 0x800CCC81 - E-Mail address with "." before "@" | Stephan Kuehn | Outlook - General Queries | 10 | January 25th 07 06:09 PM |
How to Set Up a Conference Room as a "Resource" in Outlook 2003 | ADP Comm | Outlook - Calandaring | 8 | August 11th 06 02:06 PM |
I do not have "Encoding" item in my "View" menu of Outlook 2003? | Baher | Outlook - Installation | 0 | June 20th 06 09:35 AM |
Resource Scheduling Error "The Operation Failed" outlook 2003. | kunalotron | Outlook - General Queries | 0 | March 21st 06 11:05 PM |