How to: Receive Daily E-mail Notifications?

How to: Receive Daily E-mail Notifications?

Rate This
  • Comments 4

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);

 

 

Leave a Comment
  • Please add 3 and 4 and type the answer here:
  • Post
Page 1 of 1 (4 items)