首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >SharePoint 2013 -延迟日期发送的工作流电子邮件

SharePoint 2013 -延迟日期发送的工作流电子邮件
EN

Stack Overflow用户
提问于 2016-09-16 20:33:05
回答 2查看 783关注 0票数 0

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

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

我似乎无法让调查在14天后发送,这样“调查分发日期”就等于当前日期。我觉得我错过了什么..。任何帮助都将不胜感激。

阶段:阶段1

代码语言:javascript
复制
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

EN

回答 2

Stack Overflow用户

发布于 2016-09-17 17:16:23

暂停,直到只考虑初始值‘当前项目:调查分配日期’。填写调配日期后,调查分发日期的值也将更新,但暂停直到不会使用此值。

您将使用某种循环功能。最好的方法是使用“Transition to stage”(因为它支持多个条件),如果所有条件都满足,就让它“循环回”到同一阶段的开头:

代码语言:javascript
复制
**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
EN

Stack Overflow用户

发布于 2016-09-20 10:45:05

对不起,我不知道如何将图片或代码放入评论栏中...非常令人困惑。

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

代码语言:javascript
复制
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

过渡到阶段转到工作流结束

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/39531643

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档