问题描述:

I'm wondering if it is possible to send a SharePoint Alert programmatically using CSOM.

I'm creating an app, and it would be useful if I could use JavaScript to send messages to users, but it doesn't seem to me that there is a way to set up Alerts without having the user manually click "Alert Me" and set up the alerts themselves.

If it definitively can't be done I'd like to know, so I can look into other approaches.

网友答案:

There are multiple ways you can add a custom Alert:

  1. Override CustomAlertTemplates.xml and implement InotifyHandler.
  2. You can create a custom control in ribbon and add custom code for it.
  3. Easiest one would be add a custom web-part(CE,SE) and write your custom logic for it.
相关阅读:
Top