Logo 
Search:

Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

How to set Alert dynamic recepient property

  Asked By: Sekhar    Date: Jul 09    Category: Sharepoint    Views: 1729

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>";

Share: 

 

1 Answer Found

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

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.




Tagged: