SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a SharePoint 2007 site which has a document library with several folders. My requirement is that whenever an item is uploaded to a folder, SharePoint should automatically generate an email notification to intended users. I can use workflows but those are not specific to a particular folder. As far as I know, SharePoint does not provide such a functionality out-of-the-box.

Is this possible using SPServices/jQuery? How can I do it?

Thanks in advance!

share|improve this question

you can create an alert at the folder level within the document library through code

 public static void AddFolderAlerts()

                using (SPSite site = new SPSite("site url goes here"))

                    using (SPWeb web = site.OpenWeb())

                        SPUser user = web.Users["domainname\\username"];
                        SPFolder folder = web.GetFolder("folder url goes here");
                        user.Alerts.Add(folder.Item, SPEventType.All, SPAlertFrequency.Immediate);




share|improve this answer

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.