473,403 Members | 2,222 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,403 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 841

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...
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: 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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.