更新多个SharePoint列表项 [英] Update multiple SharePoint list Items

查看:122
本文介绍了更新多个SharePoint列表项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个InfoPath表单,当提交到SharePoint表单库时,它还会向任务列表中添加一个项目.任务列表中的每个项目都包含一个People字段,该字段可能包含多个名称.我有表单中的代码,可以在自定义列表"中创建单独的项目,人"字段中的每个名称都可以创建一个项目.

I have an InfoPath form that, when submitted to a SharePoint Form Library, also adds a single item to a Task List. Each item in the Task List contains a People field that may contain multiple names. I have code in the form that creates separate items in a Custom List, one for each name in the People field.

当我手动更新任务列表"项中的状态"字段时,我希望SharePoint工作流(我正在使用Designer 2010)更新自定义列表"中相应项的所有状态"字段. ShP 2010工作流程中的更新列表项"选项将仅更新单个列表条目.有没有一种方法可以更新与状态被修改的任务列表项目相对应的所有自定义列表项目?

When I manually update the Status field in a Task List item, I would like a SharePoint workflow (I'm using Designer 2010) to update all of the Status fields for the corresponding items in the Custom List. The "Update list item" option in ShP 2010 workflows will only update a single list entry. Is there a way to update all of the Custom List items that correspond to the Task List item whose Status is being modified?

推荐答案

要同时更新多个列表项,请使用SharePoint批更新.请查看以下链接以获取更多信息:

To update multiple list items simultaneously, use SharePoint batch update. Look at following links for more information:

  • MSDN - Visual How To - Batch Updating List Items in Windows SharePoint Services 3.0
  • http://apmblog.compuware.com/2009/01/20/sharepoint-using-batch-updates-to-speed-up-performance/

您还可以使用批处理操作进行插入和删除.

You can also use batch operations for inserting and deleting.

这篇关于更新多个SharePoint列表项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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