So, my is ... At what point is the Resource Booked
I have code that I would like to "hold" from processing until I know for sure that the resource has been booked!
Is there anyway to do something like this
Thnks
Bill
So, my is ... At what point is the Resource Booked
I have code that I would like to "hold" from processing until I know for sure that the resource has been booked!
Is there anyway to do something like this
Thnks
Bill
Hello Billy,
booking a resource is normally a workflow.
You send a meeting request to the mailbox of the resource,
after inviting the resource to your appointment and you clicked the send button.
the script behind the resource mailbox auto accepts or declines your request.
You will receive a meeting accept or decline message from the resource.
At this point you know if it is booked or not.
So monitor the incomming Emails and check for the meeting request response message.
Does this help
Greets, Helmut
If the resource is set for direct booking, there will be no accept or decline message.
Helmut,
Thanks for the response! Thanks for ALL your other post's on OUTLOOK across the web as well!
I do not actually get an email back, I get a messagebox that will say one of 2 things,
Resource has been successfully booked [OK]
or
"Resource Name" is already booked for the specified time. You must use another time or find another resource.[OK]
So where does the mail come from, if all I see is these messages
also, do not know if this matters, but if I have the 'resource' calender open, I can see the appointment get inserted and then removed when it is already booked.
Thanks again!
BillyD
Again, there is no message involved. The behavior you are seeing indicates that the resource supports direct booking.
Sue,
I guess I am unsure of what you are getting at, as my original question was;
How can I 'hold' up my process untill I can get that 'confirmation' that the meeting was booked
Thanks
BillyD
Sending of the meeting request forces the resource to be booked or the booking denied. After an item is sent, it goes out of scope. Therefore, any additional processing would have to take place by retrieving the saved appointment. I haven't done any research to see if the direct booking mechanism causes an ItemChange event to fire.
Hello Billy,
then you can use a good old Windows API calld FindWindow ... to search for the Messagebox window.
Use the Spy++ from the Visual Studio Tools to find out more about the MessageBox that pops up.
Hope this helps,
greets, Helmut
I actually think I have a work around/new design.
It appears that the appointment 'write' event is fired twice... during the first is when I perform my routine.
I believe if I create a seperate class that will hold these events (instead of in the main addin) I can set a flag after the first fire - then perform my own operation - after the "booking has or has not occurred.
Just an idea - need time to implement and test a dummy so... unless someone knows why this would NOT work, when I get some time I will post back the results.