Sharepoint Designer工作流程,日期和时间 [英] Sharepoint Designer Workflow, Date and Time

查看:69
本文介绍了Sharepoint Designer工作流程,日期和时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在尝试开发工作流程。此工作流程将是一个多步骤工作流程,但我遇到的问题是我必须能够轮询工作流程上次运行的时间。我知道如何把日期和时间最后一次运行,但我不希望日期在
的等式中。如果上次运行的工作流程少于上午9:55,我必须说明,然后继续执行步骤。但每次我这样做,它都是在我创建这一步的日期。请告知是否有其他方法可以做到这一点。 Attatched是我现在正在做的截图

I am currently trying to develop a workflow. This workflow will be a multiple step workflow but the issue I am having is I have to be able to poll on the time the workflow last run. I know how to put the Date and Time Last Run but I don't want the date in the equation. I have to put that if the workflow last run is less than 9:55 am, then proceed with step. But everytime I do that, it is putting the date in that I am creating this step on. Please advise if there is another way to do this. Attatched is a screenshot of what I am doing now.

我试图设置一个变量,但是这个步骤不允许我使用小于。该选项不可用。

I attempted to set a variable, which was successful but then the step would not allow me to use the is less than. That option is not available.

谢谢

推荐答案

嗨Kennynaq, 

Hi Kennynaq, 

来自你的说明,您要将时间忽略日期与SharePoint Designer工作流进行比较。您需要创建计算列以比较时间忽略日期,然后在工作流条件下使用计算列。 

From your description, you want to compare the times ignore date with SharePoint Designer workflow. You need to create calculate column to compare the times ignore date, then using the calculated column in the condition of the workflow. 

请参阅以下步骤:

1。创建名为"日期和时间"的日期和时间列并将 日期和时间列的值设置为工作流上下文:使用工作流的上次运行日期和时间。 

1. Create a Date and time column named "date and time" and set the value of the Date and time column to Workflow Context:Date and Time Last Run using workflow. 

2。创建一个名为cal的计算列并设置公式:

2. Create a calculate column named cal and set the formula:

= IF(或(小时([日期和时间])< 9,AND(小时([日期和时间])= 9,MINUTE([日期和时间])< 55)),"Yes","No")

=IF(OR(HOUR([date and time])<9,AND(HOUR([date and time])=9,MINUTE([date and time])<55)),"Yes","No")

然后创建如下工作流程:

Then create a workflow like the following:




最诚挚的问候, 

Best Regards, 

Lisa Chen 

Lisa Chen 


这篇关于Sharepoint Designer工作流程,日期和时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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