在Sharepoint中设置每周摘要 [英] Setting up a weekly digest in Sharepoint

查看:88
本文介绍了在Sharepoint中设置每周摘要的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在MOSS 2007网站上工作,我需要设置一个系统,该系统将通过电子邮件发送该网站中所有列表和库中的所有更改。

I'm currently working on a MOSS 2007 site and i need to set up a "system" which will e-mail all the changes in all the lists and libraries in the site.

我是Sharepoint世界的新手,我想知道是否有可能。

I'm new to the Sharepoint world, i wonder if it is possible.

PS我无权访问管理中心面板。 (如果与我的目的有关)

P.S. I have no access to the Central Administration panel. (If it has anything to do with my purpose)

谢谢

推荐答案

您可以编写自定义计时器作业来执行此任务。

You can write custom timer job to do this task.

您可以通过以下方式进行操作:

You could do it in this way:


  1. 创建自定义计时器作业功能,设置timerjob时间表。

  2. 在FeatureActivated事件上,将该timerjob添加到SharePoint并具有 [Persisted]属性,例如timerjob中的SiteUrl您可以传入构造函数,以让timerjob确定要与哪个网站一起使用。

  3. 使用 SPWeb.SiteUsers 到g以及SharePoint中的所有用户。

  4. 圈定每个用户,打开模拟为每个用户的新SPSite

  5. 在SPSite.RootWeb(SPWeb)上执行 GetSiteData (阅读社区评论,获取一些出色的示例以及如何使用的说明它)。使用查询查询项目其中已修改字段的值大于(要正确查询的重要信息请单击链接)。

  6. 从数据中生成html,并 SPUtility.SendMail

  1. Create custom timer job feature, set timerjob schedule.
  2. On FeatureActivated event add that timerjob to SharePoint and have a [Persisted] property like SiteUrl in timerjob, which you could pass in constructor to let timerjob determine with which site to work with.
  3. Use SPWeb.SiteUsers to get all users in SharePoint.
  4. Loop each user, open new SPSite impersonated as each user.
  5. On SPSite.RootWeb (SPWeb) execute GetSiteData (read community comments for some great examples and explanation on how to use it). Use Query that queries items where Modified field has value greater than (follow link for important info to query correctly) what you want.
  6. Generate html out of your data and SPUtility.SendMail.

有一个提醒工作功能。但是,它仅适用于1 List范围。但是您可以下载源代码,打开RmdJobDefinition类,然后看看它如何帮助您编写自己的类。

There is a scheduled reminder job feature available. However it works only on 1 List scope. But you can download source code, open RmdJobDefinition class and just see how it works to assist you writing your own class.

祝您好运。

这篇关于在Sharepoint中设置每周摘要的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆