locked
After update alert xml still getting old style emails. RRS feed

  • Question

  • Hello, 

    After updating Alert xml file. I still get old version of alerts.  I already knew existing alert are not going to be updated. so i create new alerts but problem is same. I never get new version of email which i design is custom xml file.  i did following steps. 


    1. I created a custom "CustomAlertTemplate.xml" and copy it to "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\XML". 

    2. Then use following command to make it active. 

    stsasdm -o updatealerttemplates -url "http://site"

         -f "C:\Program Files\Common Files\MicrosoftShared\WebServerExtensions\14\TEMPLATE\XML\MyCustomAlertTemplate.xml"

    3. Applied this custom template to a single list by using power shell :

    add-pssnapin Microsoft.SharePoint.PowerShell -erroraction silentlycontinue 
    $contentService = [Microsoft.SharePoint.Administration.SPWebService]::ContentService 
    $AlertsTemplateCollection =  new-object Microsoft.SharePoint.SPAlertTemplateCollection($contentService)
    $spWeb = Get-SPWeb -Identity http://dev2/ 
    $splists = $spWeb.lists 
    $alertslist = $splists["Tasks"] 
    $alertslist.AlertTemplate = $AlertsTemplateCollection["SPAlertTemplateType.CustomAlertEmail"] 
    $alertslist.Update() 
    $spWeb.Dispose()

    4. Run "iisreset" on every Frontend Server. 

    5. Restart the Windows SharePoint Services Timer service on each Front End Server.

    6. Rerun following timmer job "Immediate Alerts" from central admin.


    asim MCTS SharePoint 2007 -WSS 3.0

    Tuesday, July 3, 2012 1:04 AM

Answers

  • I solved this issue.

    Actually After each change in Alert.xml file. you have to perform all steps again. step 1 to step 6. then it shows me latest changes.

     


    asim MCTS SharePoint 2007 -WSS 3.0

    • Marked as answer by SP Ninja Wednesday, July 4, 2012 3:58 AM
    Wednesday, July 4, 2012 3:58 AM

All replies

  • Hi,

    Have you placed this file in each WFE servers?


    Thanks, Rahul Rashu

    Tuesday, July 3, 2012 3:09 AM
  • yes i placed it on every WFE

    asim MCTS SharePoint 2007 -WSS 3.0

    Wednesday, July 4, 2012 3:55 AM
  • I solved this issue.

    Actually After each change in Alert.xml file. you have to perform all steps again. step 1 to step 6. then it shows me latest changes.

     


    asim MCTS SharePoint 2007 -WSS 3.0

    • Marked as answer by SP Ninja Wednesday, July 4, 2012 3:58 AM
    Wednesday, July 4, 2012 3:58 AM