SharePoint 审批工作流程
我在 SharePoint 中有一个自定义内容类型,它有一个与之关联的审批工作流。 内容类型包含多个选择网站栏。 现在需要更改选择列的值并更新现有内容以反映新值。
例如,
Existing Choices:
Choice 1
Choice 2
Choice 3
New Choices
Choice 1a
Choice 2a
Choice 3
所以,一些选择正在被重命名。
据我所知,虽然更改选择列很简单,但现有列表项不会自动获取新值,即选择选项 1 的列表项仍将显示选项 1,直到列表项被物理编辑。 但编辑该项目将需要重新批准工作流程。 有数千个项目分布在多个列表中,这些项目将受到此更改的影响。
所以,我的问题是:是否可以在进行更改时暂停或分离工作流程,然后在进行更改后重新附加/重新激活,从而避免需要重新批准所有内容? 或者我最好考虑自动重新批准?
非常感谢任何帮助
I have a custom content type in SharePoint which has an approval workflow associated with it. The content type contains several Choice Site Columns. There is now a requirement to change the values of the choice columns AND update the existing content to reflect the new values.
Eg,
Existing Choices:
Choice 1
Choice 2
Choice 3
New Choices
Choice 1a
Choice 2a
Choice 3
So, some of the choices are being renamed.
As far as i can tell, whilst changing the choice column is straight forward, the existing list items won't automatically pick up the new values i.e. a list item with Choice 1 selected will still show Choice 1 until the list item is physically edited. But editing the item will require re-approval of the workflow. There are a few thousand items spread over several lists which will be affected by this change.
So, my question: Is it possible to suspend or detach the workflow whilst the changes are made and then re-attach / re-activate after the changes have been made, thus avoiding the need to re-approve everything? Or am i best to look at automating the re-approval?
Any help much appreciated
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用对象模型 SPListItem 更新值.SystemUpdate 方法,可以选择允许您阻止创建新版本。
您可以使用 SPSiteDataQuery 查找使用您的内容类型,然后使用上述方法更新它们。
问候,
丹尼尔·卡尔森
You could update the values using the object model, the SPListItem.SystemUpdate method that optionally allows you to prevent that a new version is created.
You could use SPSiteDataQuery to find all items using your content type and then update them using the method mentioned above.
Regards,
Daniel Karlsson