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.
- Site url is the path to your site (example: http://intranet/sites/training)
- Code for new alert is exactly “_layouts/SubNew.aspx?List=”
- 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)
- 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.