Has anyone implemented IAlertUpdateHandler
interface successfully?
Actually I've to suppress alert subscription notification email. I've following code in PreUpdate
method:
public bool PreUpdate(SPAlert a, SPWeb web, bool newAlert, string properties)
{
if (CHECK_IF_SUPPRESSING_EMAIL)
{
a.Update(false);
}
else
{
a.Update();
}
return true;//have tried returning false also
}
but I'm getting StackOverFlow
exception as the method is called recursively. Any clues about what is going wrong?
EDIT:- I've tried using PostUpdate
also but got same results.