Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Check Availibility in Outlook Calendar

Status
Not open for further replies.

Vanni1975

Programmer
Joined
Mar 6, 2003
Messages
6
Location
BE
Hi,

In my program i have to check if someone is still available that day.
The users are using Outlook connected to a MS Exchange Server. Is it possible to check there availability like outlook does when you make an appointment and invite other persons ?

Have anyone any idea ?
Thx in advance

Vanni
 
Vanni1975

I'm not sure of your level of understanding of Outlook Automation, bu the following should give you the starting time of each appointments in your Outlook calendar (providing its in the default location). From there you can retreive all the pieces of information related to an appointment, including the that at a given time there is no appointment set which would mean that the person is available.
Code:
LOCAL nCount
o=CREATEOBJECT("outlook.application")
ns=o.GetNamespace("mapi")
df = ns.GetDefaultFolder(9)
oItems = df.Items
FOR EACH loItem IN oItems
   ? loItem.start
NEXT
Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
If you're wanting to check the availability of users other than only the current user, refer to the FreeBusy method of the Recipient object.

There are several examples in the MSDN. Jon Hawkins
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top