?
Solved

Getting Free/Busy User Status from Microsoft Exchange Server

Posted on 2008-09-30
2
Medium Priority
?
259 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 1

Accepted Solution

by:
oliver_mk earned 2000 total points
ID: 22650576
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
ID: 31501517
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I don't pretend to be an expert at this, but I have found a few things that are useful. I hope that sharing them here will help others, so they will not have to face some rather hard choices. Since I felt this to be a topic of enough importance and…
Are you an Exchange administrator employed with an organization? And, have you encountered a corrupt Exchange database due to which you are not able to open its EDB file. This article will explain all the steps to repair corrupt Exchange database.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

650 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