PC Review


Reply
Thread Tools Rate Thread

Can not create alerts in moss2007 using API

 
 
kashif
Guest
Posts: n/a
 
      19th Dec 2006
Hello All,
I am trying to create alert's using SharePoint V3 API and for some
reason the properties I am setting does not affect in database. Here is
my code.

sPAlert6 = sPUser5.Alerts.Add();
sPAlert6.AlertType = SPAlertType.List;
sPAlert6.Title = "test alert";
sPAlert6.EventType = SPEventType.Delete;
sPAlert6.EventTypeBitmask = 2;
sPAlert6.AlertFrequency = SPAlertFrequency.Weekly;
sPAlert6.User = sPUser5;
sPAlert6.List = sPList;
sPAlert6.Update();

After executing this code following properties did not set what I am
trying to set in the database. However update method does not fail.

sPAlert6.EventType = SPEventType.Delete;
sPAlert6.EventTypeBitmask = 2;

After doing this if I see my alert in the browser following items were
set to default values.
1- Change Type
2- Send Alerts for These Changes

Can some body help me figure out why API is not saving the values what
I am setting, rather it is saving the default values.

Thanks
kashif

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can not create alerts in moss2007 using API kashif Microsoft Dot NET 0 19th Dec 2006 10:47 PM
How do I create pop up alerts? =?Utf-8?B?Y2hyamVm?= Microsoft Outlook Discussion 0 25th Oct 2006 05:57 AM
How do I create desktop alerts ? =?Utf-8?B?UGFkbWFuYWJoYW4gSw==?= Microsoft Outlook Discussion 1 27th May 2006 02:12 AM
Create Performance Monitor Alerts via a Script =?Utf-8?B?TGFuY2U=?= Microsoft Windows 2000 Deployment 0 21st Jun 2005 04:51 PM
Rules & Alerts - Developing an Alerts Web Service that Uses Outlook 2003 Alerts Andrew Denler Microsoft Outlook 0 26th Jan 2005 09:13 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:47 PM.