Can anyone please give me some help in trying to find a series of "Next Available Appointments"
I want to be able to re-iterate through all the available timeslots for a particular owner in a given date/time range and return an array of available of time slots.
There was an old post in the old forums HERE but I was wondering if there are any other better methods? I am VERY suprised this isn't a built in function (maybe it is but I haven't found it)
It would be great if I could specify the Time required (eg: 30mins or 45mins) and then the function would return an available timeslot(s) that can fit this appointment in.CheersAaron
There is no publicly exposed method that does exactly what you describe here. One of the overloads of the GetAppointmentsInRange method (used in the code sample that you referenced in this post) takes an Owner; you can use that overload to filter out the appointments that are associated with that Owner.
Brian Fallon"]GetAppointmentsInRange method (used in the code sample that you referenced in this post) takes an Owner; you can use that overload to filter out the appointments that are associated with that Owner.
I am having REAL trouble understanding how to do this. I will explain in further detail what I am trying to achieve.
Lets say I have a DayView that has 3 Visible Owners (Adam, Bob, Charlie). I want to find the FIRST Available free TimeSlot for ANY of the owners. It does not matter which owner I just want to ensure that I have the EARLIEST available appointment.
ADAM BOB CHARLIE10AM appt appt appt11AM appt appt appt12AM appt appt appt1PM appt appt2PM appt appt3PM appt appt appt
How can I code an Function which selects the TimeSlot @ 1PM for BOB???
The Code example I referenced in my opening post would find the appointment @ 2PM for ADAM wouldn't it? Because it would search the timeslots from Top to Bottom then Left to Right.(meaning it would parse through all of ADAMs timeslots, then all of BOBs timeslot then finally all of CHARLIES appointments from top to bottom)
Thanks in Advance! :)