![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
![]()
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 |
#2
|
|||
|
|||
![]()
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 |
#3
|
|||
|
|||
![]()
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 |
#4
|
|||
|
|||
![]()
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 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to Sync Public Folder Contacts with Personal Folder Contact Li | Larz | Outlook - Using Contacts | 0 | May 14th 07 07:22 PM |
Public Folder/Folder Assistant Forwarding email w/o original sender name | xtremluck | Outlook - General Queries | 2 | December 20th 06 08:57 PM |
Copy email from local folder to public folder | Andrew | Outlook and VBA | 0 | November 16th 06 09:29 AM |
Obtaining Folder Size in Public Folder Favourites | Kentucky | Outlook and VBA | 0 | September 7th 06 04:14 PM |
activate contact folder from public folder with "show this folder as email address book using a prf file | Frankie K. | Outlook - Using Contacts | 7 | July 25th 06 05:37 PM |