C
Curtis Justus
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
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