【问题标题】:SharePoint 2013 - Workflow Email sent on delayed dateSharePoint 2013 - 在延迟日期发送的工作流电子邮件
【发布时间】:2016-09-16 12:33:05
【问题描述】:

论坛新手。我在特定日期启动工作流时遇到问题。当用户获得新设备时,我想从我们的客户那里获得反馈。

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

我似乎无法在 14 天结束后发送调查,因此“调查分发日期”等于当前日期。我觉得我错过了一些东西......任何帮助将不胜感激。

阶段:第一阶段

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

【问题讨论】:

    标签: sharepoint sharepoint-2013 sharepoint-designer sharepoint-workflow


    【解决方案1】:

    对不起,我不明白如何将图片或代码放入 cmets 字段中......非常混乱......

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

    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
    

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

    【讨论】:

      【解决方案2】:

      暂停直到仅考虑“当前项目:调查分发日期”的初始值。填写部署日期后,Survey Distribution Date 的值也会更新,但 Pause until 不会使用此值。

      您将使用某种循环功能。最好的方法是使用“过渡到阶段”(因为它支持多个条件)并在满足所有条件时让它“循环”到同一阶段的开头:

      **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
      

      【讨论】:

      • 非常感谢罗伯特。我可能需要一些帮助来实施您的建议,因为我可以找到一种方法来“检查”“当前项目:调查分发日期”的日期。默认情况下,如果部署列中没有选择日期,则“当前项目:调查分发日期”的值为 1900/01/13。一旦安排了超极本的部署日期,“当前项目”调查分发日期" 字段填充了一个有意义的值。基本上它是一个计算列,在部署日期上增加了 14 天,因此用户在两周后得到调查。
      • 非常感谢。我不知道“暂停”。这现在很好用。再次感谢您花时间发布解决方案。非常感谢。
      猜你喜欢
      • 2019-03-03
      • 2016-11-09
      • 1970-01-01
      • 2011-12-15
      • 2014-04-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-01-22
      相关资源
      最近更新 更多