如何在 SharePoint 中设置工作流程,使其仅在特定字段更改时工作,而不是每次编辑项目时工作?
问题是,每次编辑/更改项目时,所有设置为接收更新的用户都会收到通知。我需要仅在特定字段更改时运行工作流程,而忽略其他字段。例如,如果我的项目包含这些值(客户名称;账户编号;联系人;地址;) - 我需要工作流程仅在账户编号更改时才工作,并且仅在更改时才工作,无论其他字段有多少次被改变。
谢谢,
The issue is that everytime an item is edited/changed all the users who are set up to receive updates are notified. I need the workflow to run only when a specific field is changed disregarding the others. For example if my item contains these values (Customer Name; Acc#; Contact Person; Address;) - I need the workflow to work only when the Acc# is changed and only if it is changed, no metter how many times the other fields are changed.
Thanks,
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
一种快速的方法是让工作流在每次启动时存储值,然后告诉它等待,直到字段 != 存储的值。这可能不适用于所有情况,但足以满足您的目的。
A quick way to do it is to have the workflow store the value each time the it starts, then tell it to wait until the field != the stored value. This may not work in all cases, but it could be enough for your purposes.
您应该创建一个事件处理程序以在您的内容类型或库上运行。然后,您可以检查您提到的字段的前后属性。然后根据需要使用事件处理程序启动工作流程。
You should create an event handler to run on your content type or library. You can then check the before and after properties of the fields you mention. Then use the event handler to initiate the workflow if required.