IAlertNotificationHandler for SharePoint Discussion Thread Delete
Hi,
I have created a Discussion Board in SharePoint 2007. I have wrote a IAlertNotificationHandler to customize the mail alert. I received mail for Insert and Update. But for delete event I can't able to get the custom mail. Can anybody please help me to solve
the Issue.
Regards
Mani
November 21st, 2010 11:36pm
Hi,
How does you check Event is "Deleted" in your code?
SPAlertHandlerParams spahp;
if(spahp.eventData[0].eventType==3)
...
Free Windows Admin Tool Kit Click here and download it now
November 22nd, 2010 12:26am
Hi,
Thanks for the reply.
I have check the event as below
spahp.eventData[0].eventType
==4 .
When
i Placed the breakpoint, it is hitting. But eventXml i am getting empty <Fields>/r/n</Fields>. So i can't able to get the title and other Information about that Item.
I
don't know why i am getting empty eventData.eventXml.
The
type of Alert is Immediate.
November 22nd, 2010 12:58am
Range EventType in IAlertNotificationHandler class are {1,2,3}
1 = add, 2=update, 3=delete, you use eventtype 4 (out of range)
if your event is delete why does not use eventtype 3 ?
Free Windows Admin Tool Kit Click here and download it now
November 22nd, 2010 1:41am