473,385 Members | 1,740 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Can not create alerts in moss2007 using API

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

Dec 19 '06 #1
0 942

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: haydnw | last post by:
Hi I have just discovered .NET alerts - they would be very useful for an application I am currently building using ASP.NET. However, the information I can find on the MS website is a bit sparse,...
1
by: rhompi | last post by:
Hi, I have a problem displaying korean characters in javascript alerts. Korean characters are displayed fine in menus, webpages, buttons,etc. except in javascript alerts. Can anyone please help...
5
by: Malik Asif Joyia | last post by:
Hello How we can send the email alerts automatically.. mean on a specific date and time. thanks
2
by: Luis Esteban Valencia | last post by:
Is there a way to send timed alerts to ALL web clients conencted to the IIS server (on a server level)? IF NOT Is there a way to send timed alerts to ALL web clients using a certain .Net web...
4
by: nick | last post by:
Is it possible to disable/suppress alert popups in javascript? I need to write a function that will loop through a form's inputs and "manually" fire their onchange events (if found). Some of those...
7
by: swethasivaram | last post by:
Hello I have a Java-based web application whose interface can be in multiple languages. My requirement is that the javascript alerts that I display should be displayed in the language in which...
0
by: kashif | last post by:
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();...
1
by: =?Utf-8?B?QmFkaXM=?= | last post by:
I'm using automation for mail merging but the process hangs because at some stage some alerts may come around! I have tried: wrdApp.DisplayAlerts = Word.WdAlertLevel.wdAlertsNone; &...
1
by: =?Utf-8?B?R2VvcmdlIFIu?= | last post by:
I used to get text message alerts from mobile.live saying I had a new Hotmail e-mail. Now it says I reached my limit. I went in to My Alerts and checked everything. It said it would reset. I double...
1
by: ishakteyran | last post by:
hi everyone, i am making a calendar notification system. say İ have a table named alerts and it has columns such as : e-mail, mobileNo, alerttype(can be sms, e-mail or both), alertdate, alerttime...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.