A Microsoft Outlook email forum. Outlook Banter

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.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Public Folder Notification



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old May 22nd 07, 05:19 PM posted to microsoft.public.outlook.program_vba
Jarryd
external usenet poster
 
Posts: 8
Default 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


  #2  
Old May 22nd 07, 07:39 PM posted to microsoft.public.outlook.program_vba
Eric Legault [MVP - Outlook]
external usenet poster
 
Posts: 830
Default 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



  #3  
Old May 23rd 07, 09:37 AM posted to microsoft.public.outlook.program_vba
Jarryd
external usenet poster
 
Posts: 8
Default 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





  #4  
Old May 23rd 07, 10:51 AM posted to microsoft.public.outlook.program_vba
Jarryd
external usenet poster
 
Posts: 8
Default 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







 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
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


All times are GMT +1. The time now is 04:29 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-2025 Outlook Banter.
The comments are property of their posters.