Mohamed Mahmoud (El-Geish)



Add to Windows Live Alerts

How to: Receive daily email notifications?

You can receive a daily email that has a compiled list of notifications, but you will need to subscribe programmatically:

IEventServiceeventService = (IEventService)new TeamFoundationServer("http://tfs:8080").GetService(typeof(IEventService));

string filter = "'Artifacts/Artifact[starts-with(translate(@ServerItem,\"ABCDEFGHIJKLMNOPQRSTUVWXYZ\",\"abcdefghijklmnopqrstuvwxyz\"),\"$/TeamProject/Folder\")]' <> null AND \"Committer\"<> 'DOMAIN\\YourUserName'";

DeliveryPreference dp = new DeliveryPreference
{
    Address = "user@example.com",
    Schedule = DeliverySchedule.Daily,
}; 

eventService.SubscribeEvent(@"DOMAIN\userName", "CheckinEvent", filter, dp);

Published Tuesday, April 21, 2009 10:14 PM by mohamedg
Filed under:

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

 

How to: Receive daily email notifications? | Microsoft Share Point said:

April 21, 2009 10:28 PM
 

thekissklimt said:

Thanks for this - i shall pass onto my developers who were looking dor such a solution.

April 22, 2009 12:19 AM
 

bertrand said:

Hi,

So you can have a weekly or daily sechedule using.

Too bad the TFS Alerts power tools does allow you to set this flag.

But you can use the power tool to get the proper String filter.

Thanks for the tip.

April 22, 2009 12:12 PM

Leave a Comment

(required) 
(optional)
(required) 

  
Enter Code Here: Required
Submit

© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Microsoft
Page view tracker