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?