文档存档警告
是否有现成的解决方案来检查文件的有效性?假设某个文档已在文档库中保存了 1 年,作者应该收到警告(例如电子邮件)以修改该文档。
我在 SharePoint 中没有找到这个。所以我正在考虑为此创建自己的功能:
- 每晚运行并检查网站集中的所有文档的计时器作业
- 可以通过中央管理中的管理页面配置计时器作业,例如配置在哪个网站上作业应运行的 Web 应用程序中的集合。
我担心的是,当在频繁使用的环境中运行它时,它不会给服务器带来太大的负担吗?例如,假设一个环境中有 100.000 个文档分布在 5 个网站集中。那么,如何循环遍历各个 SPWeb 中的所有文档库,使用 SPSiteDataQuery 检索所有这些文档并循环遍历该集合?因为在 5 个 SPSites 中的每个 SPWeb 中打开每个文档库...
或者是否有其他选项可以完成此操作?有工作流程吗?因为最终文件的所有者会收到警告,他需要确认该文件是否仍然有效。老实说,我还没有接触过太多工作流程。
我想听听您对此的想法。
马丁。
Is there an out of the box solution to check the validity of documents? Let's say when a document has been in a document library for 1 year, the author should get a warning, an e-mail for example, to revise the document.
I didn't find this in SharePoint. So I was thinking of creating my own feature for this:
- A timer job which runs every night and check all the documents in the site collection
- The timer job can be configured through an admin page in the central admin, for example to configure on which site collections in a web application the job should run.
My concern is, when running this in a heavily used environment, doesn't it burden the servers too much? Let's say for example an environment with 100.000 documents spread out over 5 site collections. And how about looping through all those document libraries in various SPWebs, use an SPSiteDataQuery to retrieve all those documents and loop through that collection? Because opening each document library in each SPWeb in 5 SPSites...
Or is there an other option to accomplish this? With workflows? Because in the end, the owner of the document receives a warning and he needs to confirm if the document is still valid. I haven't touched workflows much to be quite honest.
I would like to hear your thoughts about this.
Maarten.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这个问题可能会给您一些想法 - 工作流程/计时器作业/第三方等,因为本质上您对文档 1 年前的电子邮件警报的要求基本上与“任务过期”
sharepoint 日历中的日期提醒
回复:加载 - 好吧,我无法向您提供具体信息,因为每种情况都不同,但您已经有能力在一夜之间运行这个程序,所以我无法想象这真的会成为一个大问题。
另请记住,您实际上并没有检索/解析文档本身,只是包含文档元数据(例如标题、位置、修改日期、受让人等)的记录。
This SO Question may give you some ideas - workflow/timer jobs/3rd party etc as in essence your requirement for email alerts when documents are 1 year old is basically the same as 'a task is overdue'
Dated reminders in sharepoint calendars
Re: Load - well I can't give you specifics as every situation is different but you've got the ability to run this overnight so I can't imagine that it would really be much of a problem.
Also Remember your not actually retrieving/parsing the documents themselves, just the record containing the documents meta-data such as title, location, modified date, assigne to etc.
这听起来像是 powershell 的工作。
编写一个小脚本来查询文档库中一年以上的文档。
然后发送电子邮件警报或为用户创建更新文档的任务。
我也不担心有 1000 个或工作流程正在运行。 WFF 是一种企业产品。我已经运行了 60000 多次,没有任何问题。
this sounds like a job for powershell.
write a little script that queries the document lib's for documents that are older than one year.
then send a email alert or create a task for the user to update the document.
also i would not worry about having 1000's or workflow runing. WFF is an enterprise product. i have had over 60000 running without any problems.