none
Reporting on Alerts - SharePoint Online RRS feed

  • Question

  • Would like to know if there's any CSOM code for SharePoint online for finding out if Alerts are on for a SharePoint list. 

    SharePoint Architect

    Wednesday, December 23, 2015 2:30 PM

Answers

All replies

  • Debasish,

    There are no pure CSOM API's to handle this situation but you could try accessing the SharePoint Alert WebService from java script to see if you were able to get the desired results.

    https://msdn.microsoft.com/en-us/library/websvcAlerts.aspx



    Sivabalan

    Wednesday, December 23, 2015 3:44 PM
  • Hi Gupta,

    If with Server Object Model, SPWeb and SPAlert would be able to achieve your requirement:

    https://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spweb_members.aspx

    https://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spweb_members.aspx

    However, in Client Object Model, there is no such method provided:

    https://msdn.microsoft.com/en-us/library/office/microsoft.sharepoint.client.aspx

    https://msdn.microsoft.com/EN-US/library/office/microsoft.sharepoint.client.web_members.aspx

    I think kannan's suggestion by using SharePoint web service interface should be OK, because it shows the method about how to return information about the alerts within a Web site and the alert information:

    https://msdn.microsoft.com/en-us/library/websvcalerts.alerts.getalerts.aspx

    https://msdn.microsoft.com/en-us/library/websvcalerts.alert_members.aspx

    Best regards,

    Patrick


    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact tnmff@microsoft.com.

    Thursday, December 24, 2015 12:17 PM
    Moderator
  • Patrick,

    Thanks. An example would be very helpful. I don't see any examples on the implementation.

    Thanks,

    Debasish


    SharePoint Architect

    Thursday, December 24, 2015 4:11 PM
  • Hi,

    Here is a step by step tutorial about how to call SharePoint web service using C#, you can use it as a start and modify it to call other web services:

    http://www.c-sharpcorner.com/UploadFile/40e97e/sharepoint-2010-web-services/  

    Best regards,

    Patrick

    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact tnmff@microsoft.com.

    Monday, December 28, 2015 9:38 AM
    Moderator