![]() |
Public Folder Notification
Hi,
How do you set a public folder to display notifications when an item is added to it? I particularly want to set this so certain Outlook clients receive notifications for certain public folders. I don't want the items to be forwarded to the users' mailboxes - I want a messagebox to be displayed. If I have to do this with VBA (ThisOutlookSession) then cool. But what event do you use, and what is the basic code that you would use to do this. TIA, Jarryd |
Public Folder Notification
The Folder Assistant has some features that can forward you a copy of the new
item or send a different message altogether. It cannot do Desktop Alerts or dialog pop-ups though. For the latter you need to use VBA. You'd have to set a module level reference for an Items collection object using the With Events keyword. You'd also need to know the folder path or EntryID value to set a reference to a MAPIFolder object from which you'd obtain the Items collection object. Once you have an Items object declared as above, there's an ItemAdd event you can trap to do something when a message arrives. Note that this event may not fire if a lot of items are delivered/saved at the same time. A more reliable but more difficult event to trap would be the Application.NewMailEx event. -- Eric Legault - Outlook MVP, MCDBA, MCTS (SharePoint programming, etc.) Try Picture Attachments Wizard for Outlook: http://www.collaborativeinnovations.ca Blog: http://blogs.officezealot.com/legault/ "Jarryd" wrote: Hi, How do you set a public folder to display notifications when an item is added to it? I particularly want to set this so certain Outlook clients receive notifications for certain public folders. I don't want the items to be forwarded to the users' mailboxes - I want a messagebox to be displayed. If I have to do this with VBA (ThisOutlookSession) then cool. But what event do you use, and what is the basic code that you would use to do this. TIA, Jarryd |
Public Folder Notification
Thanks Eric. You're a legend.
Jarryd "Eric Legault [MVP - Outlook]" wrote in message ... The Folder Assistant has some features that can forward you a copy of the new item or send a different message altogether. It cannot do Desktop Alerts or dialog pop-ups though. For the latter you need to use VBA. You'd have to set a module level reference for an Items collection object using the With Events keyword. You'd also need to know the folder path or EntryID value to set a reference to a MAPIFolder object from which you'd obtain the Items collection object. Once you have an Items object declared as above, there's an ItemAdd event you can trap to do something when a message arrives. Note that this event may not fire if a lot of items are delivered/saved at the same time. A more reliable but more difficult event to trap would be the Application.NewMailEx event. -- Eric Legault - Outlook MVP, MCDBA, MCTS (SharePoint programming, etc.) Try Picture Attachments Wizard for Outlook: http://www.collaborativeinnovations.ca Blog: http://blogs.officezealot.com/legault/ "Jarryd" wrote: Hi, How do you set a public folder to display notifications when an item is added to it? I particularly want to set this so certain Outlook clients receive notifications for certain public folders. I don't want the items to be forwarded to the users' mailboxes - I want a messagebox to be displayed. If I have to do this with VBA (ThisOutlookSession) then cool. But what event do you use, and what is the basic code that you would use to do this. TIA, Jarryd |
Public Folder Notification
Hi Eric,
Something I didn't mention: I use Outlook 2003 and Exchange 2003. So far as I can tell Outlook doesn't add Public Folders to a users Outlook profile, so I don't suppose that it automatically communicates with the Exchange server with regards to "movements" in the Public Folder store, or am I wrong? If I am not wrong, then how does the Outlook client register that a change has occurred on / in the Public Folder in question and in turn trigger the code that would result in the pop-up being generated? If Outlook 2003 does get notified by the Exchange Server 2003 server of changes to the Public Folder store then I guess there is no problem. As you say, declare the Item, set the properties using the With clause and stipulate the Public Folder being "monitored" referencing the EntryID / folder path. Sounds like a doddle, if, as I said, Outlook and Exchange communicate PF status / event information. TIA, Jarryd "Jarryd" wrote in message ... Thanks Eric. You're a legend. Jarryd "Eric Legault [MVP - Outlook]" wrote in message ... The Folder Assistant has some features that can forward you a copy of the new item or send a different message altogether. It cannot do Desktop Alerts or dialog pop-ups though. For the latter you need to use VBA. You'd have to set a module level reference for an Items collection object using the With Events keyword. You'd also need to know the folder path or EntryID value to set a reference to a MAPIFolder object from which you'd obtain the Items collection object. Once you have an Items object declared as above, there's an ItemAdd event you can trap to do something when a message arrives. Note that this event may not fire if a lot of items are delivered/saved at the same time. A more reliable but more difficult event to trap would be the Application.NewMailEx event. -- Eric Legault - Outlook MVP, MCDBA, MCTS (SharePoint programming, etc.) Try Picture Attachments Wizard for Outlook: http://www.collaborativeinnovations.ca Blog: http://blogs.officezealot.com/legault/ "Jarryd" wrote: Hi, How do you set a public folder to display notifications when an item is added to it? I particularly want to set this so certain Outlook clients receive notifications for certain public folders. I don't want the items to be forwarded to the users' mailboxes - I want a messagebox to be displayed. If I have to do this with VBA (ThisOutlookSession) then cool. But what event do you use, and what is the basic code that you would use to do this. TIA, Jarryd |
All times are GMT +1. The time now is 06:13 AM. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com