Sharepoint Forum

 
Home » Forum » Sharepoint       Ask a questionRSS Feeds

How to set Alert dynamic recepient property

  Asked By: Sekhar Shanubhogue         Date: Jul 09, 2009      Category: Sharepoint      Views: 326
 

I am facing one problem while adding alert programmatically.

I want to send alert email to multiple users but not able to
know how to do that programmatically.

I am writing like that way :
SPAlert alert;

alert.Properties["dynamicrecipient"]
= "<Query><And><And><Eq><FieldRef
Name=\"AssignedTo\"/><Value type=\"string\">" + "nishm_2000@..." +
"</Value></Eq><Neq><FieldRef
Name=\"Status\"/><Value
type=\"string\">completed</Value></Neq></And><Leq><FieldRef
Name=\"StartDate\"/><Value
type=\"datetime\"><Today/></Value></Leq></And></Query>";

also tried this way :

alert.DynamicRecipient = "<Query><And><And><Eq><FieldRef
Name=\"AssignedTo\"/><Value type=\"string\">" + " nishm_2000@..." +
"</Value></Eq><Neq><FieldRef
Name=\"Status\"/><Value
type=\"string\">completed</Value></Neq></And><Leq><FieldRef
Name=\"StartDate\"/><Value
type=\"datetime\"><Today/></Value></Leq></And></Query>";

Tagged:              

 

1 Answer Found

 
Answer #1       Answered By: Rosanna Parrish          Answered On: Jul 09, 2009       

I wonder what your purpose is to send alert  email automatically while
something in sharepoint changes. However, Sharepoint Alert Reminder is
a certain kind of sharepoint Alert add-on product which may be helpful
to you.
You can visit the following website and may get some useful ideas
www.sharepointboost.com/alertreminderboost.html

 
Didn't find what you were looking for? Find more on How to set Alert dynamic recepient property Or get search suggestion and latest updates.


Your Answer
  • Answer should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].