English 中文(简体)
监视 SharePoint 文档库
原标题:
  • 时间:2008-10-20 13:29:46
  •  标签:

我在想是否有一种很好的方式来监控SharePoint上的文档库以查看更改情况(如新增文件、更改/签入文件、删除文件等)。

基本上,System.IO.FileSystemWatcher 在本地/网络目录上执行什么操作。

上传文档到文档库时是否会触发事件?

也许在文档库上创建一个触发 onCreate / onModify 的工作流会更好?

任何建议都欢迎。

最佳回答

看看列表/文档库的事件接收器。对象模型中内置了同步和异步选项。(ItemAdded, ItemAdding, ItemUpdated, ItemUpdating … 等等。)

The following site should give you a good start: http://www.davehunter.co.uk/Blog/Lists/Posts/Post.aspx?List=f0e16a1a%2D6fa9%2D4130%2Dbcab%2Dbaeb97ccc4ff&ID=69

问题回答

That depends whether you need to react to these events immediately or if you can gather them later. For immediate actions event receivers would be the best option but you have to prepare them for each action type you want to handle. For the latter, you can use audit log. That s a feature in sharepoint, that gathers information about user actions. This will require enabling some features on sites and maybe some configuration where you can specify which actions should be logged).

View: https://support.office.com/en-us/article/view-audit-log-reports-b37c5869-1b47-4a82-a30d-ea20070fe527 Configure: https://support.office.com/en-us/article/configure-audit-settings-for-a-site-collection-a9920c97-38c0-44f2-8bcb-4cf1e2ae22d2

Unfortunately I m not sure if it s possible to get this data using CSOM - according to answer from the link below, you ll have to use server solution: https://social.msdn.microsoft.com/Forums/office/en-US/fd628034-9d6d-4f98-afb8-1d0bd6926bd0/accessing-audit-logs-using-csom-in-sharepoint-2013?forum=sharepointdevelopment





相关问题
热门标签