基于计时器的工作流程,用于更新结束日期字段已通过的状态字段 [英] Timer based Workflow to update status field whose end date fields has passed

查看:114
本文介绍了基于计时器的工作流程,用于更新结束日期字段已通过的状态字段的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我想创建一个每天初始化的工作流程,检查列表中的所有项目如果找到结束日期小于或等于今天的项目,它会将列表项的状态字段更新为结束。

I wanted to create a workflow which is initialized daily that checks all the items in a list and if it finds an item whose end date is less than or equal to today, it would update the status field of the list item to ended.

请你帮忙吧。

提前谢谢

推荐答案

虽然使用工作流延迟可能会有这种情况,但我建议使用SP计时器作业或使用CSOM的控制台应用程序来执行此操作。

Though this may be possible using a Workflow Delay, I suggest using either a SP Timer Job or a Console Application using CSOM to do this.

如果您使用工作流延迟,那么您将在后台运行多个工作流实例,等待结束日期,其中计时器作业或控制台应用程序将运行一次每天检查哪些项目需要更新。

Point is if you use Workflow Delay you will have multiple instances of your workflow running in the background waiting for the End Date where Timer Job or Console Application will just run once per day and check which items needs to be updated.

对于CSOM文档,您可以查看
link

For CSOM Documentation you may check this link.


这篇关于基于计时器的工作流程,用于更新结束日期字段已通过的状态字段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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