Welcome to MSDN Blogs Sign in | Join | Help

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

# re: How to: Receive daily email notifications?

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

Wednesday, April 22, 2009 12:19 AM by thekissklimt

# re: How to: Receive daily email notifications?

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.

Wednesday, April 22, 2009 12:12 PM by bertrand

Leave a Comment

(required) 
required 
(required) 

  
Enter Code Here: Required
 
Page view tracker