Using Outlook Object Model from an NT Service

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Due to a business need, I need to use the Outlook Object Model spawned from
an NT Service to update users' Outlook calendar (even though MS does not recommend doing that - KB 237913). That's done through setting up the user's calendar delegate. However that is occationally crashing/not working without a clue (at least for now.) Application log files or Event Viwer is not showing any errors/warnings. Does anyone know if CDO can set the calendar delegate? Without using the Exchange admin credentials, is there anyway to access another user's calendar and not other folders like Inbox? Thanks for any help in advance
 
You'll need to rethink your design. The KB article is correct: Outlook
really and truly is not suitable for running from a service. You can,
however, use CDO to access the data in other users' calendars. CDO will have
the permissions of whatever account the service is running under.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers



John Lee said:
Due to a business need, I need to use the Outlook Object Model spawned from
an NT Service to update users' Outlook calendar (even though MS does not
recommend doing that - KB 237913). That's done through setting up the
user's calendar delegate. However that is occationally crashing/not working
without a clue (at least for now.) Application log files or Event Viwer is
not showing any errors/warnings. Does anyone know if CDO can set the
calendar delegate? Without using the Exchange admin credentials, is there
anyway to access another user's calendar and not other folders like Inbox?
Thanks for any help in advance.
 
Back
Top