Link to home
Start Free TrialLog in
Avatar of jlalande
jlalande

asked on

Getting calendar events for today

I have an application that broadcasts a user's current Outlook calendar status.  This application uses MAPI to retrieve calendar items.  It is simple enough to get items for the current day, however repeating meeting items are stored such that just one item is created with all of the repeat details stored in a byte array.  Because of this my application must analyze ALL of the calendar entries, first for if they repeat and if so, parse the byte array to see if the current date is present.

This is terribly slow since some of my users have years of calendar data.

Is there a faster way to do this?  Does Exchange provide any kind of query mechanism?

I have looked at CDO and Redemption, but though these libraries would help me, for various reasons, I cannot use them.
Avatar of pchui
pchui

Have you considered using the Outlook Object Model?

http://msdn.microsoft.com/en-us/library/dd490722(v=office.12).aspx#Y556

Avatar of jlalande

ASKER

I have and the Outlook Object Model does exactly what I need without much fuss.

The downside is that it depends on Outlook running.  If Outlook isn't running, an Outlook process is created. This is fine, but if a user has Outlook running or later starts Outlook, then closes it, there is no longer an Outlook process and my application stops receiving Outlook Object Model events.

What I am looking for are some MAPI calls that will return a list of calendar entries that are occurring today, including calendar entries created in the past that are repeating/recurring today.
ASKER CERTIFIED SOLUTION
Avatar of pchui
pchui

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
"No" is a valid answer.