SharePoint 2013版本历史记录 [英] SharePoint 2013 Version History

查看:121
本文介绍了SharePoint 2013版本历史记录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有几个问题.我正在处理SharePoint列表,并且客户端要求是跟踪何时更新了列,因此我在版本历史记录中进行了此操作,效果很好.问题是我也有一些工作流程正在运行以更新列, 但我不希望它们包含在版本历史记录中.我无法弄清楚如何阻止工作流列更新出现在版本历史记录中.有办法吗?其次,有没有一种方法可以导出列表或全部列表中某个项目的版本历史记录 项目?我宁愿不必编写代码.最后,有一种方法可以在一个合并的电子表格或列表中报告每月的列编辑,以向管理层报告.我知道有审计报告,但它们未指定更改了哪一列.目前,何时 一个项目被添加到列表中或进行了编辑,我通过工作流在另一个报告列表中创建了一个条目,但这很麻烦,并且搞乱了版本控制和警报电子邮件,因为要完成此操作需要很多列.

I have a few questions. I am working on a SharePoint list and the client requirement is to track when columns have been updated, so I am doing that in version history, which works great. The issue is I also have some workflows running that update columns, but I don't want them included in the version history. I can't figure out how to stop workflow column updates from appearing in version history. Is there a way? Secondly, is there a way to export the version history for an item in the list or all items? I would rather not have to code. Lastly, is there a way to report monthly column edits in one consolidatd spreadsheet or list to report to management. I know there are audit reports, but they do not specify what column was changed. Currently, when an item is added to the list or edited, I create an entry in another reporting list through workflows, but it's a pain and is messing up the versioning and alert emails because there are some many columns needed to accomplish this.

推荐答案

,为了在不影响版本历史的情况下更新列表项,您需要使用对象模型中的SPListItem.SystemUpdate(false)方法调用.查看如何解决,例如这里:

for updating list items without affecting version history you need to use SPListItem.SystemUpdate(false) method call from object model. See how it is solved e.g. here: SharePoint Designer workflow - update list item field without creating new version. In Sharepoint Online you may achieve the same via REST API which starting with August 2016 Update has SystemUpdate method as well. It means that you don't need to create custom Workflow action in Visual studio - you may use standard web service call action. But in on-prem you most probably need to go with mentioned solution.

第二个问题:您可能会通过PowerShell获得列表项的版本历史记录:

For second question: you may get list items version history via PowerShell: Get List Item Version History for each item if specific field was changed.

第三点:不记得在OTB Sharepoint报表中有这样的事情.您可以通过调度程序运行上面提到的PowerShell脚本,将输出合并到Excel文件并比较数据.

For third one: don't remember that there was something like this in OTB Sharepoint reports. You may run PowerShell script mentioned above by scheduler, combine outputs to Excel file and compare data.


这篇关于SharePoint 2013版本历史记录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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