Link to home
Start Free TrialLog in
Avatar of tomecktomeck
tomecktomeck

asked on

Accessing calendar and appointments with VBScript

Hello,

How can I access calendar to get certain appointment attendees using VBScript?

I can't use MAPI/CDOEX because it can't be installed on the machine where script is running. So I can see that only WebDAV meets the requirements. It's kind of complex though, could you provide me with some code/hints connected with accessing the appointments in Exchange?

Regards
ASKER CERTIFIED SOLUTION
Avatar of dandraka
dandraka
Flag of Greece image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of tomecktomeck
tomecktomeck

ASKER

Wow, thanks, that indeed helps.

This URL:
http://myexserver/exchange/Administrator/Calendar/

What kind of permissions do I need to have? Administrator permissions, or calendar owner's permission?
Well, it seems that the only problem left is this URL:

http://myexserver/exchange/USER/Calendar/

When I am trying to open it in a browser it throws out a credential window, however credentials of the USER don't work.

If I am to use it via a script, it gives me:

<div id="content">
 <div class="content-container"><fieldset>
  <h2>404 - File or directory not found.</h2>
  <h3>The resource you are looking for might have been removed, had its name cha
nged, or is temporarily unavailable.</h3>
 </fieldset></div>

What's the rule in creating this URL? Do I need to put some kind of a path to the calendar I am interested in? Where do I get it from?
Avatar of LeeDerbyshire
The URL may be
http://myexserver/exchange/user@domain.com/Calendar/
sometimes, E2003 wants the SMTP address, rather than the mailbox alias.
I ended up using Exchange Web Services - previously I thought it's impossible to use it via VBScript. And the URL is different in Exchange 2007 - thanks for help anyway!
You can still use the Exchange VDir for WebDAV access even in E2007 (it's there for backward compatibility), but EWS is much better, if you are able to use that.