locked
Alerts when document libraries are created RRS feed

  • Question

  • Hi

    Is there a way to create an alert in SharePoint 2010 that tells you when document libraries  ect... are created in a specific site or Site collection?

    Thanks

    Monday, June 25, 2012 2:41 PM

Answers

  • hello,

    I dont think there is out of box option available for this requirement. Alerts are only available for List, ListItems, Doc Libs and DocLibs Items.

    Please refer the link to know more about alerts : http://technet.microsoft.com/en-us/library/cc287751.aspx

    In this scenario, timer job can be created to fetch the document library/list created within the site collection, then send custom mail to relevant user about the creation,

    also you can set alert for the document library/list created newly, so that from that moment OOB alert mail will be sent based on the alert condition set for that document library\list.

    • Marked as answer by GuYuming Friday, June 29, 2012 1:31 AM
    Thursday, June 28, 2012 1:13 PM
  • you can create a custom timer job, querying the lists in specific site, if the creation date for the list fall into a specific range, say, current date, send out an email.
    • Marked as answer by GuYuming Friday, June 29, 2012 1:31 AM
    Tuesday, June 26, 2012 2:00 AM

All replies

  • Check this post. You can set alerts to be sent when new documents are added.

    http://support.sherweb.com/Faqs/Show/how-to-create-an-alert-in-a-sharepoint-site-sharepoint-2010

    Monday, June 25, 2012 2:59 PM
  • I think the question is not to get alert when a document in doc library is added or deleted, but the question here is that to alert when a new doc library is created in a site or site collection. I think in this case you might have to use SPAlertTemplate class. Just a quick code demo for you to giveyou a direction. You may have to research further on this:

    SPAlertTemplate  sPAlertTemplate = new SPAlertTemplate();
    sPAlertTemplate.Name = "SPAlertTemplateType.DocumentLibrary";
    sPAlert.AlertFrequency = SPAlertFrequency.Weekly;
    sPAlert.User = sPUser;
    sPAlert.List = sPList;
    sPAlert.Update();

    Monday, June 25, 2012 3:33 PM
  • you can create a custom timer job, querying the lists in specific site, if the creation date for the list fall into a specific range, say, current date, send out an email.
    • Marked as answer by GuYuming Friday, June 29, 2012 1:31 AM
    Tuesday, June 26, 2012 2:00 AM
  • hello,

    I dont think there is out of box option available for this requirement. Alerts are only available for List, ListItems, Doc Libs and DocLibs Items.

    Please refer the link to know more about alerts : http://technet.microsoft.com/en-us/library/cc287751.aspx

    In this scenario, timer job can be created to fetch the document library/list created within the site collection, then send custom mail to relevant user about the creation,

    also you can set alert for the document library/list created newly, so that from that moment OOB alert mail will be sent based on the alert condition set for that document library\list.

    • Marked as answer by GuYuming Friday, June 29, 2012 1:31 AM
    Thursday, June 28, 2012 1:13 PM