对已存在的项目启动工作流程
我已将工作流添加到 SharePoint(2007) 日历。 如果 A 列不等于 B 列,工作流会将信息从 A 列复制到 B 列。我将此工作流设置为在创建或修改项目时启动。 但是,我还想在此日历中已存在的所有项目上启动此工作流程。
有没有办法可以批量启动并运行所有已存在项目的工作流程?
编辑:让我再澄清一下我的问题。 我想对已创建的 200-300 个项目运行一次工作流程。 我不需要每次添加新项目时都遍历这些项目。 只需一次比较/复制列 A 到列 B 的所有现有项目
I have added a workflow to a SharePoint(2007) calendar. The workflow copies information from Column A to Column B if Column A is not equal to Column B. I set this workflow to start when an item is created or modified. However, I would also like to start this workflow on all items that already exist in this calendar.
Is there a way I can do a mass start and run the workflow for all the items that already exist?
EDIT: Let me clarify my question a little more. I would like to run the workflow one time on the 200-300 items that have already been created. I don't need to traverse the items everytime a new item is added. Just one time to compare/copy Column A to Column B for all the existing items
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
通过单击时遍历与描述匹配的所有项目(A 列!= B 列)的功能,将自定义操作添加到列表的操作面板,然后通过 SPListItem 的 WorkflowAssociations 触发工作流
Add a customaction to the list's action panel through a feature that when clicked traverses all items matching the description (Column A != Column B), then triggering the workflow through the SPListItem's WorkflowAssociations
这是一种低技术含量的方法,应该有效。 转至日历的“所有事件”视图,单击“操作”>“事件”。 在数据表中编辑,然后快速编辑所有事件行。 由于它是伪电子表格视图,因此您可以在第一行中设置一个值,然后填充所有行。 这将快速修改每个事件,因此应该触发工作流程。
如果您不想编辑现有列(例如,丢失任何有价值的数据),您可以临时创建一个新列,返回到数据表视图,并在该列中为所有事件设置一个值。 一旦触发工作流程,您就可以丢弃该列。
Here's a low-tech method that should work. Go to the All Events view for the calendar, click Actions > Edit in Datasheet, then make an edit quickly to all event rows. Since it's a pseudo-spreadsheet view, you can set a value in the first row and then fill down all the rows. That would quickly modify each event, and thus should trigger the workflow.
If you don't want to edit an existing column (and lose any valuable data, for instance), you could just create a new column temporarily, go back into the datasheet view, and set a value in that column for all events. Once the workflows have been triggered, you could then just discard that column.