Hi Friends,
Is there a way to edit the interval of the mysite activity newsfeed cleanup job which is by default of 14 days? If I need to edit it to like 3 days or 1 day or 1 minute, is it possible?
Technology Tips and News
Hi Friends,
Is there a way to edit the interval of the mysite activity newsfeed cleanup job which is by default of 14 days? If I need to edit it to like 3 days or 1 day or 1 minute, is it possible?
No. The 14/11 day is built into the timer job code. You'll need to develop your own timer job if you want to customize it, or simply disable the timer job and handle it manually.
[Guid("752FC8C4-4EA8-4781-8B75-995563AAD5ED")] internal class MySiteCleanupJob : SPServiceJobDefinition { // Fields private const string ADFilterFormat = "(&({0})(samaccountname={1}))"; [Persisted] private string handlerString; private const string LDAPFilterFormat = "(&({0})(uid={1}))"; internal const int NumberOfDaysBeforeDeletion = 14; internal const int NumberOfDaysBeforeReminder = 11; ...}
HI,
I need to sent deletion email notifications to his manager as well as sharepoint administrator(by default only manager will receive this kind of mail but administrator also need to receive same mail )
Per the other thread, this requires a custom timer job: