Hello everyone,
Is there a way to find next available appointment by the given duration within a day and owner. The appointment can be several hours or minutes long so I cannot look for empty TimeSlots due to limitations with time interval.
GetAppointmentsInRange Cannot be used also as it will give me the appointment that conflict with the given range.
We need to find all available time for that day. Any help will be greatly appreciated.
amemon said: GetAppointmentsInRange Cannot be used also as it will give me the appointment that conflict with the given range.
Brian, thank you for your response.
we are trying to implement an auto moving of appointment if there is a conflict. so if an appointment is booked with conflict we wanted to move it to the next available place. if i was to use the range method i would need to loop through every minute in that day until i find an empty range. i cannot loop through each slot because 1. we are not booking the slot completely, so a 30 mins slot could have only 5 mins booked and 25 empty, 2. my appointments can be several hours long and slot interval are limited. any ideas?
Hello ,
As far as I understand you want to generate a list of time-ranges, without any appointments, for the specific owner in specific timeframe. What could I suggest you in this case is to get the appointments for the specific owner (in specific timeframe), then to merge those appointments, which intersect each other and then to calculate the empty time-ranges in the specific timeframe. I have tried to implement my idea in a small sample, please see the attached sample. In this sample I have UltraTimeLineView with two owners (Unassigned owner, which is the owner for which the calculation is made and GapOwner, which I am using to display the “gap”, calculated for the Unassigned owner), so when you dynamically change the appointments of the Unassigned owner and press “Calculate gaps” you will be able to see the "gaps" of Unassigned owner as appointments of GapOwner. This sample is just to demonstrate my idea, so please feel free to modify the sample base on your needs.
I hope that this will helps.
Hi,
I just wanted to know if you were able to solve your issue based on my suggestions or you still need help? Just let me know.
Thank you.
Thank you. It seems like a great idea! however i didnt receive the first post until this morning. Any how i will check and let you know. A sample in VB will help even more if you have one readily available. Thanks again