Hi all,
I’m trying to fix existing alerts after a database attach 2010 upgrade (from MOSS 2007). Newly created alerts in 2010 work fine. I've applied the following as per Shane to fix alert on a site collection with no luck.
Get-SPweb -site http://portal/sites/new -limit all |ForEach-Object {$_.alerts|foreach-object{$_.properties["siteUrl"] = "http://portal/sites/new";$_.update()}}Also tried this script from Salaudden Rajack's blog -
$SPSite= Get-SPSite "http://mySharePoint.com/sites/alerts/"
foreach ($spweb in $SPSite.AllWebs)
{
foreach($alert in $spweb.Alerts)
{
$OriginalTitle = $alert.Title
$alert.Title = "UPDATE: $OriginalTitle"
$alert.Update()
$alert.Title = $OriginalTitle
$alert.Update()
Write-Host "Updated Alert" $alert.Title "in"$spweb.url
}
}At this stage when I looked at the [ImmedSubscriptions] table, I found SiteURL was still showing the old web app. Basically until I ran Update command directly (per this blog) into the table to change the SiteURL to my new web app URL, alerts did not work. I know it's not supported way of doing stuff.So checking how others are making alerts to work?
Does anyone have any suggestion why SiteURL not updating even after I'm running those above scripts?
Please note I did not really apply the Invoke-AlertFixup function– as I’m seeing in the Q&A section there are comments that it breaks the ‘Modify my alert setting’ but unfortunately Kirk Stark has not addressed the issue yet.
Appreciate any feedback!
BlueSky2010
Please help and appreciate others by using forum features: "Propose As Answer", "Vote As Helpful" and"Mark As Answer"