Partager via


How to: Receive Daily E-mail 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("https://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);

Comments

  • Anonymous
    April 21, 2009
    PingBack from http://microsoft-sharepoint.simplynetdev.com/how-to-receive-daily-email-notifications/

  • Anonymous
    April 21, 2009
    Thanks for this - i shall pass onto my developers who were looking dor such a solution.

  • Anonymous
    April 22, 2009
    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.

  • Anonymous
    July 09, 2010
    This blog has been created to share useful information. Thanks and greetings!