SharePoint 向字段中指定的用户发送电子邮件
我有一个 SharePoint 问题列表,并已将一列(称为“警报”)设置为“个人或组”(允许多个名称)。
如果相应的问题被修改,我希望系统向“警报”字段中列出的所有用户发送电子邮件。
如何设置工作流程以按照“警报”字段(如果有)中的数据指定的方式向用户发送电子邮件?我知道如何使用工作流程等 - 问题是工作流程电子邮件的“收件人”部分。
(抱歉,如果这个问题已经得到解决 - 我已经搜索了 Stack Overflow 并通过 Google 搜索,但找不到答案)
最好通过 SharePoint Designer。即最好没有代码。
问候。
I have a SharePoint list of Issues and have set a column (called Alert) to a “Person or Group” (allowing multiple names).
I would like the system to send an email to all the users listed in the Alert field, if the respective Issue is modified.
How do I set the Workflow to send an email the users as specified by the data in the Alert field (if there is any)? I know how to use the Workflow etc – the problem the “To” part of the Workflow's email.
(Sorry if this item has already been tackled – I've searched Stack Overflow and Googled around but could not find an answer)
Preferably through SharePoint Designer. i.e. preferably with no Code.
Regards.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
我对 SP Designer 工作流程的经验有限,但您是否尝试过在“收件人”字段中选择“工作流程查找”的电子邮件操作?这允许您使用提交的列表项中的特定字段。
I have limited experience with SP Designer workflows, but have you tried the email action with "Workflow Lookup" selected in the To field? This allows you to use specific fields from the submitted list item.
您将需要使用 SPUtility.SentEmail 方法,该方法将使用 SharePoint 服务器的上下文向您传递的字符串发送电子邮件,从而使您无需自行编写代码来发送电子邮件。
http://msdn.microsoft.com/ en-us/library/microsoft.sharepoint.utilities.sputility.sendemail.aspx
You'll want to use the SPUtility.SentEmail method which will send an email to the string you pass it from using the context of the SharePoint server, saving you from writing the code youself to send it.
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.utilities.sputility.sendemail.aspx
使用“构建动态字符串”工作流程操作来撰写电子邮件地址列表。然后,您可以在 TO 字段中使用动态字符串变量。您可以在查找对话框中的“工作流程数据”下找到该变量。
Use the "Build Dynamic String" workflow action to compose the list of email addresses. You can then use the dynamic string variable in the TO field. You can find the variable under "Workflow Data" in the lookup dialog.
我相信 SPD 工作流程只能发送到允许单一选择的人员字段。如果您需要向多个用户发送电子邮件,则必须找到自定义操作(类似于 http://www .codeplex.com/SPDActivities)或使用 Visual Studio 开发 Windows Workflow Foundation 工作流。
I believe that the SPD workflows can only send to a person field that allows single selections. If you need to send an email to multiple users you will have to find a custom action (similar to http://www.codeplex.com/SPDActivities) or develop a Windows Workflow Foundation workflow using Visual Studio.
我找到了一种解决方法,可以使工作流程向在字段类型
Person/Group
下输入的多个用户发送电子邮件:String
的工作流程变量当前项目字段名称
和返回类型String
变量名称
I have found a workaround to make the workflow send emails to multiple users entered under the field type
Person/Group
:String
Current Item field name
and return typeString
Variable Name