View Single Post
  #3  
Old February 19th 10, 07:52 PM posted to microsoft.public.outlook.program_addins
Mark B[_2_]
external usenet poster
 
Posts: 93
Default Is there a RefreshNow action for Search Folder?

Yes I see now. The Refresh rate method was created by another programmer
here. It simply deleted the folder and recreated it again.


"Ken Slovak - [MVP - Outlook]" wrote in message
...
I'm not sure where you're changing the search folder refresh rate, but
there's no such method in the Outlook object model. In fact, using the OOM
there isn't much you can do other than delete the existing search folder
and create a new one on each Outlook startup. Other than setting a search
folder using the Search object and saving the search to create a search
folder there isn't much to work with for you. You can get the existing
search folder, delete it and create a new one.

The Redemption (www.dimastr.com/redemption) object model has an
RDOSearchFolder object where you can call Stop() and Start() methods that
effectively force a refresh, but not in the Outlook object model.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"Mark B" wrote in message
...
VSTO, C#, OL2007

I need to refresh a search folder on Outlook Open since the DASL criteria
has a %Today function which works OK on the day the item first appears in
the folder but doesn't work the following day when I open up Outlook.

I have just changed the folder's refresh rate to 5 minutes but this still
means the user may get the wrong results when they first open Outlook in
the morning -- unless they presumably wait 5 minutes.

I saw that the folder object has a Refresh rate property but could find a
Refresh method to call.



Ads