Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I have a web template that provisions some lists and as part of the solution i need a timer job to manipulate the lists. The problem is i do not know where the lists will be within the web application its deployed too. I was wondering whether its feasible to create a timer job with a public property where i can add the urls of the lists. My idea is as follows:-

  1. create a timer job with a public property of type array / dictionary / arraylist etc
  2. In my web scoped feature which creates the lists i check if the timer job is present. If not i create the timer job and pass in the current URL
  3. If the timer job exists then pass in the url to the array property.

In my timer job i can then iterate over the array / dictionary / arraylist to access the lists?

Does this sound like a good idea? Is there better way of doing this?

share|improve this question
Actually i was wondering whether its a better idea to create a timer job with a different name for site. Does that sound like a better idea –  Richard Banks May 10 '13 at 9:53
add comment

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.