Solved

Getting Free/Busy User Status from Microsoft Exchange Server

Posted on 2008-09-30
2
250 Views
Last Modified: 2012-06-27
Hello,

I would like to connect to an Microsoft Exchange Server anf get the Free/Busy status of an specific user at a specific time.
Now after researching a bit, I found this code on the Exchange SDK Help:
   IAddresseePtr iAddr(__uuidof(Addressee));
   iAddr->EmailAddress = userUPN;
   iAddr->GetFreeBusy(startDate, endDate, Interval, bstr_t(), bstr_t(), bstr_t(), bstr_t());

But as far as I understand this, this would mean I have to run my code on the same machine as the exchange server?

How can I do the same from another machine that has Outlook using the Exchange Server but using another User as the one I want the information from?

Thank You!
0
Comment
Question by:hlienert
2 Comments
 
LVL 1

Accepted Solution

by:
oliver_mk earned 500 total points
Comment Utility
You can do that using CDO, and also with the Exchange Web Services (only in Exchange Server 2007).
You don't need to run the code on the Exchange Server machine, you just need CDO installed on that machine. If you use the Exchange Web services you can run it wherever you want. You might need to use some user that has privileges to see other user's info that you are interested.
Here is a very good tutorial for EWS:
http://blogs.visoftinc.com/archive/2008/03/20/Using-Exchange-Web-Services-2007-The-Basics.aspx

and if you use CDO, this is a good site for any kind of info:
http://www.cdolive.com/default.htm

Regards,
Oliver
0
 

Author Closing Comment

by:hlienert
Comment Utility
Hi!

thank you for the reply, glad someone did at the end. By the way, while waiting for some reply here I found out that Redemption can be used very well for this. It will cost some 100 Dollars if I wanna sell my application.
I also almost managed to get the Information using pure MAPI, but it's really hell!!
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Disabling the Directory Sync Service Account in Office 365 will stop directory synchronization from working.
This process describes the steps required to Import and Export data from and to .pst files using Exchange 2010. We can use these steps to export data from a user to a .pst file, import data back to the same or a different user, or even import data t…
In this Micro Video tutorial you will learn the basics about Database Availability Groups and How to configure one using a live Exchange Server Environment. The video tutorial explains the basics of the Exchange server Database Availability grou…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now