0

I'm having a weird issue when trying to update user alerts via Powershell. I am able to update the alerts, and getting properties on the alerts as well as practical testing shows that the alert properties have changed (specifically, changing the eventtype from Add to Modify).

However, if you look at the settings in SubEdit.aspx (Alert Me > Manage My Alerts), it still shows the old Change Type ("New items are added" instead of "Existing items are modified"). If you update the alert via this page, then look at the properties via Powershell, it is changed. You can then change it again in Powershell, confirm that you have changed it through properties and testing, but SubEdit.aspx still shows the old setting.

Wondering if anyone has ever seen this/has any idea what is causing it?

Thanks in advance.

2
  • have you tried to clear the browser cache? clear the cache, close the browser and reopen it.
    – Waqas Sarwar MVP
    May 18, 2016 at 17:54
  • Yes. In fact I even opened it on a different computer that I had not viewed on it yet, just to be sure.
    – Todd
    May 18, 2016 at 18:19

1 Answer 1

0

You also have to set the .Properties["eventtypeindex"] when you set the .EventType. Example:
$alertItem.EventType = [Microsoft.SharePoint.SPEventType]::Add;
$alertItem.Properties["eventtypeindex"] = 1;
$alertItem.Update();

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.