0

论坛新手。我在启动特定日期的工作流程时遇到问题。我想在用户获得新设备时从客户那里获得反馈。SharePoint 2013 - 延迟日期发送的工作流程电子邮件

条件/操作 Ultrabook已部署到最终用户=是 调查邮件已发送=标记以消除用户接收多个电子邮件,以防将来行更新。 暂停直到调查分发日期 - 这是一个计算字段,它将采用部署日期并为其添加14天。格式为日期和时间 当前项目中的更新项目将“发送调查邮件”列更新为“是”。

当14天到期时,我似乎无法得到调查结果,因此“调查分发日期”等于当前日期。我觉得我失去了一些东西......任何帮助将不胜感激。

阶段:第1阶段

If Current Item:Ultrabook deployed Y/N equals Yes 
and Current Item:Survey Email Sent equals No 
    Pause until Current Item:Survey Distribution Date 
    If Current Item:Survey Distribution Date equals (ignoring time) Today 
     Email Current Item:Recipient 
     Update item in Current Item 

过渡到舞台 转到结束工作流程的

Screenshot of Designer Workflow Code

回答

0

暂停,直到只需要的初始值“当前项目:调查发放日期”为帐户。在部署日期填写调查分发日期的值后,也会更新,但暂停直到不会使用此值。

你会有某种循环功能。要做到这一点,最好的方法是使用“过渡到第二阶段”(因为它支持多个条件),并让它“环回”到同一个阶段的开始,如果所有的条件都满足:

**Stage: WAITING** 

Pause for 1 days, 0 hours, 0 minutes 
Transition to Stage 
If Current Item:Ultrabook deployed Y/N equals Yes 
and Current Item:Survey Email Sent equals No 
and Current Item:Survey Distribution Date is greater than Today 
    Go to SENDING THE EMAIL 
Else 
    Go to WAITING 


**Stage: SENDING THE EMAIL** 

Email Current Item:Recipient 
Transition to stage 
Go to End of Workflow 
+0

非常感谢罗伯特。我可能需要一些帮助来实施你的建议,因为我可以找到一种方法来“检查”“当前项目:调查分发日期”的日期。 默认情况下,如果在部署列中没有选择日期,则“当前项目:调查分发日期”的值为1900/01/13。只要安排了Ultrabook的部署日期,“当前项目”调查分发日期“字段中填充了一个有意义的值。基本上它是一个计算列,在部署日期上添加了14天,以便用户在两周后获得调查结果。 – barnie206

+0

非常感谢。我不知道“暂停”。这现在工作很好。再次感谢您花时间发布解决方案。非常感谢。 – barnie206

0

对不起,我没有得到如何将图片或代码放入评论区域....非常令人困惑...

这是我使用的代码。这有意义吗?

Stage:Stage 1 
Loop: 1 
    The contents of this loop will run repeatedly while: Current Item:Survey Distribution Date is less than 1901-01-13 12:00:00 
     Pause until Current Item:Survey Distribution Date 
     If Current Item:Survey Distribution Date equals (ignoring time) Today 
     and Current Item:Survey Email Sent equals No 
     and Current Item:Ultrabook deployed Y/N equals Yes 
      Email Current Item:Recipient 
      Update item in Current Item 

过渡到舞台 转到结束工作流程的

相关问题