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 need to set a list alert for current (logged in) user using JavaScript.


    var currentcontext = new SP.ClientContext.get_current();
    var currentweb = currentcontext.get_web();
    var currentuser = currentweb.get_currentUser();
    var list = currentweb.get_lists().getByTitle("List Name");

I am getting the current user and list using this code, but I do not know how to set alert for this user on this list

see below snapshot

enter image description here

I want to set alert same like which mention in snapshot using JavaScript. Is there any way to do it?

share|improve this question
which kinds of alert you want to set? alert user when item changed? – Raymond Apr 25 '13 at 10:08
i modified my question. – Hitesh Chandegara Apr 25 '13 at 10:27

I did something like this for a client. My solution was made a web service. By this web service I was able to make an AJAX call and create an Alert code behind.

share|improve this answer

There is no built in way via the SharePoint JavaScript Object Model according to my research.

Likely you will have to build your JavaScript to work with the SharePoint 2010 Alerts Web Service: using JQuery or whatever framework calls from JavaScript on your page.

share|improve this answer
The SharePoint client side APIs do not support a Create or AddEvent operation, so this is a no go. – Paul T. May 11 '14 at 14:01

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.