简体   繁体   English

如何通过Web服务或数据库查询访问SharePoint内置警报我的定义(针对用户定义的警报)

[英]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: 但是我想获得警报属性,例如:

  1. I want to know that Alerts defined on which list or Doc-Lib? 我想知道警报定义在哪个列表或文档库中?
  2. When they want (email or SMS?) (immediately or everyday they want to SharePoint send alerts) 当他们想要时(通过电子邮件还是SMS?)(他们希望SharePoint立即或每天发送警报)
  3. Who define this alerts (which user)? 谁定义此警报(哪个用户)?
  4. How many times this alerts fire in last days? 该警报在过去几天触发了多少次? (History) (历史)
  5. Is there any way like event handlers in android we subscribe SharePoint event handlers and fire event or run custom code or call web service? 有没有什么办法可以像Android中的事件处理程序那样订阅SharePoint事件处理程序并触发事件或运行自定义代码或调用Web服务?

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 在这里回答我的问题, 此为您添加更多说明。

  1. I want to know that Alerts defined on which list or Doc-Lib? 我想知道警报定义在哪个列表或文档库中?
  2. and When they want (email or SMS?) (immediately or everyday they want to SharePoint send alerts ? 和何时需要(电子邮件或SMS?)(立即或每天),他们希望SharePoint发送警报?

you can achieve this via SQL query, where The Alerts in SharePoint have been stored in Content Database Specifically at ImmedSubscriptions 您可以通过SQL查询来实现此目的,其中SharePoint中的警报已存储在内容数据库中,特别是在ImmedSubscriptions

共享点提醒如何在Web应用程序移动后对其进行修复

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 我编写了有关这两种方法的更多详细信息, ImmedSubscriptionsSchedSubscriptionsTable的每个字段分别表示在SharePoint 2013中“按列表名称获取所有用户警报”中的详细步骤

  1. Who define this alerts (which user)? 谁定义此警报(哪个用户)?

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

  1. How many times this alerts fire in last days? 该警报在过去几天触发了多少次? (History) (历史)

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 )具有内置警报的相同功能,从而可以跟踪您的通知以灵活的方式。

  1. Is there any way like event handlers in android we subscribe SharePoint event handlers and fire event or run custom code or call web service? 有没有什么办法可以像Android中的事件处理程序那样订阅SharePoint事件处理程序并触发事件或运行自定义代码或调用Web服务?

this article may help you External events and alerts in SharePoint 2013 本文可能会帮助您SharePoint 2013中的外部事件和警报

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Excel VBA 用户自定义 Function 查询Access数据库 - Excel VBA User-Defined Function to query an Access Database 我可以在没有Web服务的情况下从C#桌面应用程序连接到Sharepoint上的SQL Server数据库吗? - Can I connect from my C# desk top application to an SQL Server database on Sharepoint without a web service? 如何托管公共ASP Web表单和Web服务来访问本地内部SQL数据库? - How can a public ASP web form and web service be hosted to access a local, internal, SQL database? 我可以在Pentaho Report Designer中的查询中使用用户定义的数据库功能吗? - Can I use a user defined database function in a query in Pentaho Report Designer? 如何从Visual Studio中的网页访问数据库? - How can I access a database from a web page in Visual Studio? 如何将sqlserver数据库导入Sharepoint - How can I import a sqlserver database into Sharepoint 谁能告诉我应该如何更改查询以便将数据库中的值与字符串进行比较 - Can anyone tell me how should I change the query in order to compare the values from my database with strings 如何完成关于用户定义表类型的当前查询并获取Schema,IsIdentity,IsPrimaryKey和......? - How can I complete my current query about User Defined Table Types and getting Schema,IsIdentity,IsPrimaryKey and …? 如何在数据库中查询? - How can I query this in a database? 我可以将数据库Web服务与生成的HTML一起用于Internet吗? - Can I use Database web service with generated HTML for internet?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM