启动 Sharepoint 工作流程“x"到期日前几天 [英] Start Sharepoint workflow "x" days before expiry date
问题描述
我想在 Sharepoint 列表上创建一个工作流,它应该发送一封通知电子邮件.
I want to create a workflow on a Sharepoint list and it should send a notification email.
问题是我希望此工作流程基于到期日期(在到期日期前 30 天发送电子邮件)并且我没有创建或更新任何新列表项.
The problem is that I want this workflow based on expiry date(send an email 30 days before the expiry date) and I am not creating or updating any new list items.
我知道只有在更改/创建任何项目时才能创建工作流,但我在网上看到一些关于使用 SPD 可以实现的讨论.
I know workflow can only be created if any item are changed/created but I have seen some buzz around on the net that this can be possible using SPD.
任何建议将不胜感激.
谢谢,
推荐答案
创建 SharePoint Designer (SPD) 工作流选择您的任务列表将其设置为在 Create 上运行点击下一步在操作部分添加这三个操作:- 添加时间到日期- 暂停直到日期- 发送电子邮件
Create a SharePoint Designer (SPD) workflow Select your task list Set it to run on Create Click Next In the Actions section add these three actions: - Add time to date - Pause until date - Send email
我的示例在设置属性后如下所示:
My example looks like this after the properties are set:
向任务添加 -7 天:截止日期(输出到变量:提醒日期)然后暂停直到变量:提醒日期然后通过电子邮件发送此消息(您可以硬编码地址或使用分配给...)
Add -7 days to Tasks:Due Date (Output to Variable: ReminderDate) then Pause until Variable: Reminder Date then Email this message (you can hard code the address or use the assigned to... )
这个非常简单的例子的注意事项:- 如果有人编辑了任务并设置了新的截止日期,此工作流仍会根据旧日期发送提醒.- 它不会检查到期日期是否至少是未来两天.
Notes for this very simple example: - If someone edits the task and sets a new due date, this workflow will still send the reminder based on the old date. - It does not check to see if the Due Date is at least two days in the future.
这篇关于启动 Sharepoint 工作流程“x"到期日前几天的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!