How to create a URL to a SharePoint alert

Sometimes it is nice to be able to create a button or direct hyperlink to direct users to create an alert on a list. Here is the easiest way that I have found to do it.

The formula = (site url) + “_layouts/SubNew.aspx?List=” + (list GUID)

And here is the breakdown.

  1. Site url is the path to your site (example: http://intranet/sites/training)
  2. Code for new alert is exactly “_layouts/SubNew.aspx?List=”
  3.  List GUID is the unique ID for your list. The easiest way to find it is to go to the library settings of the list you want to great the alert on then copy the URL for the “Advanced settings” and you will see that in the url there is a string after “List=”. This is the GUID you need (example: %7B76B645BF%2D1C33%2D43AC%2D827F%2D000394333F71%7D)
  4. Now you just put those three items together and you have your direct URL.

Finished example is http://intranet/sites/Training/_layouts/SubNew.aspx?List=%7BE7735F69%2D5542%2D4B8F%2D9426%2DD7757EAFABD9%7D

If you want to get fancy you can also specify the page the user is redirected to after clicking the OK or Cancel button on the alert page by adding “&Source=” followed by a url to the end for the hyperlink.

Credit via http://techtrainingnotes.blogspot.com/2011/10/sharepoint-create-alert-from-anywhere.html

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s