locked
Track newly created document libraries in moss RRS feed

  • Question

  • hello all,

    i have a requirement as follows

    Once an document library is created, i need to get the name of this document library and add to a custom list. This has to be done automatically.

     How do i keep track of newly created Lists in MOSS. Event recievers donot have the methods for creation of lists..

    How do  i achieve this ?

    Regards


    Friday, February 26, 2010 4:03 AM

Answers

  • the most simple procedure would it to create a list template, derived from the doc lib type and to add a custom content type. Now you can hook an event-receiver to the content-type

    http://blogs.msdn.com/brianwilson/archive/2007/03/05/part-1-event-handlers-everything-you-need-to-know-about-microsoft-office-sharepoint-portal-server-moss-event-handlers.aspx

    Or write a TimerJob that is automatically started and is looking for newly created doclibs
    Friday, February 26, 2010 8:25 AM
  • In this version of sharepoint you indeed do not have the required events to fulfill your need to keep track of newly created lists in MOSS.
    The most "airtight" solution in my opinion would be to create a timerjob indeed to poll every now and then to see if there are new document libraries. (and probably check if some are deleted / changed, so a whole sync system)

    This will probably be better in the 2010 version (but I havent checked this out myself)


    Regards,
    Jeroen
    My blog on WSS / MOSS development is found at http://jebass.blogspot.com
    Friday, February 26, 2010 9:29 AM

All replies

  • the most simple procedure would it to create a list template, derived from the doc lib type and to add a custom content type. Now you can hook an event-receiver to the content-type

    http://blogs.msdn.com/brianwilson/archive/2007/03/05/part-1-event-handlers-everything-you-need-to-know-about-microsoft-office-sharepoint-portal-server-moss-event-handlers.aspx

    Or write a TimerJob that is automatically started and is looking for newly created doclibs
    Friday, February 26, 2010 8:25 AM
  • In this version of sharepoint you indeed do not have the required events to fulfill your need to keep track of newly created lists in MOSS.
    The most "airtight" solution in my opinion would be to create a timerjob indeed to poll every now and then to see if there are new document libraries. (and probably check if some are deleted / changed, so a whole sync system)

    This will probably be better in the 2010 version (but I havent checked this out myself)


    Regards,
    Jeroen
    My blog on WSS / MOSS development is found at http://jebass.blogspot.com
    Friday, February 26, 2010 9:29 AM