Find calendar time blocks of specified length

W

wpiet

Can someone direct me to a starting point for developing a calendar program
that accepts input of a desired time-block length (e.g. 15 minutes) that will
search the calendar & return available blocks of time of the specified
length? I want to find the 1st available block of that length or longer. If
the user chooses to use that block, I will let them create an appointment, If
not, I want to go to the next available block, etc. I haven't done any
programming related to Calendar, so don't know where to begin. A point in the
right direction will be greatly appreciated.
 
K

Ken Slovak - [MVP - Outlook]

For a specific Recipient object you can use the FreeBusy() method, which
takes arguments for start date, minutes per return character and an optional
format argument. For an AddressEntry object you can use the GetFreeBusy()
method which takes the same arguments.

If you supply MinPerChar = 15 that sets a 15 minute free/busy return block.
What you get back is a string that has "0" for each free period and "1" for
each busy/OOF/tentative block.

If you specify True for CompleteFormat you get back more detail where you
get individual values for busy ("2"), tentative ("1"), out of office ("3").
"0" would still be free in that case.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top