Ask a questionAsk a question
 

QuestionSharePoint alert handler and zones

All Replies

  • Saturday, November 07, 2009 6:58 AMPeter Holpar Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi Jeremy,

    When you create the alerts from the forms zone, it means you visit the list in the forms zone, and subscribe the alert there?

    In the code do you use the webUrl and sieUrl properties of the SPAlertHandlerParams when constructing the link URL? Have you tried to debug / trace your code?

    The step 5 in the referenced article is:
    "Run this command from C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN:  stsadm -o updatealerttemplates -filename "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\TEMPLATE\XML\customalerttemplates.xml" -url <your sharepoint site url>"

    Have you registered the same alert template for both zone of the site? Probably you shouldn't, but I'm not sure in that. What happens if you register it using the FBA URL instead of the default one?

    Peter
  • Monday, November 09, 2009 9:05 PMJeremy Weiss Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Peter thanks for the reply and sorry abou the delay in response.  I have subscrived from alerts on both zones and I have using the webUrl and siteUrl properties.  I have traced the code and that is when I first noticed it.  I have not tried register the customalerttemplate.xml with the forms url.  I will give that a shot and post back the results.
  • Monday, November 16, 2009 9:19 PMJeremy Weiss Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    I finally had time to try the suggestion that Peter had about registering on the forms URL. I decided to attach to the timer service and place a watch on the variables and some break points in the code so I could step through the code. Using the immediate windows I started looking through the ahp vaiable and found that url's always point to the default zone (non-forms URL).