Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 25064

How to use the new SearchAlerts constructor to develop Search Alerts Programmatically?

$
0
0

I previously developed a Visual web part to programmatic-ally create Search alerts based on the user input. I used a text box to capture the text and create a Query using the Keyword Query Class. Then I used a constructor provided through the DLL/API, (THIS WAS IN SHAREPOINT 2010)

SearchAlertNewSearchAlert=newSearchAlert(SPSite xxx,Query xxxx )

This constructor was avilable in Sharepoint 2010 and Sharepoint 2013 Preview. But i cant not find this condtructor in Sharepoint 2013.

The available constructor in Sharepoint 2013 is

SearchAlertNewSearchAlert=newSearchAlert(SPAlertCollection xxx,SpAlert xxxx )

Is there someone who has worked with this class to tell me where i can find the Initial constructor where i pass the query and build the search alert or is there anyone who knows how to set the query text in an SPAlert and create a search alert using the new constructor?


Viewing all articles
Browse latest Browse all 25064

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>