[英]How can I access to SharePoint builtin alert me definitions (to user defined alerts) by web service or database query
I don't want to customize alert me in SharePoint like this link 我不想像这样的链接在SharePoint中自定义提醒我
But I want to get alerts properties like: 但是我想获得警报属性,例如:
Question : Is there any way to access any of the above items ? 问题:是否可以访问上述任何项目? (by call web service ? or SQL Query? or any other alternate solution?) (通过调用Web服务或SQL查询或任何其他替代解决方案?)
(my Goal : decide to have alternative channels like Telegram Bots or cloud phone ( CloudCall can be used with many CRM systems ) call and other attractive ways for customers to Notify them. relationship management ) (我的目标:决定使用替代渠道,例如电报机器人或云电话( CloudCall可以与许多CRM系统一起使用 )呼叫以及其他吸引客户的方式通知客户。 关系管理 )
Thanks in advance 提前致谢
Case number 4 or 5 has lower priority : If impossible or hard or spend your time or out of scope of this question we skip that. 案例编号4或5的优先级较低:如果不可能或很难,或者花费您的时间或超出此问题的范围,我们将跳过该问题。
Qabbas answer my question here and i add more description here for you. Qabbas 在这里回答我的问题, 在此为您添加更多说明。
you can achieve this via SQL query, where The Alerts in SharePoint have been stored in Content Database Specifically at ImmedSubscriptions
您可以通过SQL查询来实现此目的,其中SharePoint中的警报已存储在内容数据库中,特别是在ImmedSubscriptions
and SchedSubscriptionsTable
(more in this link ). 和SchedSubscriptionsTable
(在此链接中更多)。 based on When to Send Alert Option
基于何时Send Alert Option
Also, you can use SSOM via C# To get alerts via SPAlertCollection
to return the collection of alerts for the Web site or user or list. 此外,您还可以通过C#使用SSOM要通过获得警报SPAlertCollection
返回警报的集合网站或用户或列表。
SPSite oSiteCollection = SPContext.Current.Site;
SPWebCollection collWebsites = oSite.AllWebs;
foreach (SPWeb oWebsite in collWebsites)
{
SPAlertCollection collAlerts = oWebsite.Alerts;
foreach (SPAlert oAlert in collAlerts)
{
Label1.Text = SPEncode.HtmlEncode(oWebsite.Title) + " :: " +
SPEncode.HtmlEncode(oAlert.Title) + " :: " +
oAlert.User.LoginName + "<BR>";
writer.Write(strLabelText);
}
oWebsite.Dispose();
}
more about above code here . 更多关于上面的代码在这里 。
I wrote more details about The two methods and what's each field at ImmedSubscriptions
and SchedSubscriptionsTable
denote to with detail steps at Get All User Alerts By List Name in SharePoint 2013 我编写了有关这两种方法的更多详细信息, ImmedSubscriptions
和SchedSubscriptionsTable
的每个字段分别表示在SharePoint 2013中“按列表名称获取所有用户警报”中的详细步骤
unfortunately , I can't find any info about the created by for alerts at this tables , only the user ID
of the user who will receive alerts. 不幸的是,我在此表上找不到有关for警报创建的信息,仅是将接收警报的用户的user ID
。
Some information may be available at EventCache
table but I am not sure but I Checked this article that describes in details some stored procedure and other tables related to alerts SharePoint E-Mail Confirmations and Alerts (under the hood) 一些信息可能在EventCache
表中可用,但我不确定,但是我检查了这篇文章,该文章详细描述了一些存储过程以及与警报SharePoint E-Mail确认和警报(有关信息)有关的其他表。
Note : to achieve 3,4 you can also build your own custom simple alerts based on your requirement that will do the same functionality of build in alerts via workflow and event receiver ( on item not on alerts it's not applicable
) to can track your notification in flexibility manner . 注意 :要达到3,4,您还可以根据您的要求构建自己的自定义简单警报,该警报将通过工作流和事件接收器( on item not on alerts it's not applicable
)具有内置警报的相同功能,从而可以跟踪您的通知以灵活的方式。
this article may help you External events and alerts in SharePoint 2013 本文可能会帮助您SharePoint 2013中的外部事件和警报
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.