InfoPath表单提交时的Sharepoint自定义电子邮件事件 [英] Custom E-Mail Event for Sharepoint Upon InfoPath Form Submit

查看:719
本文介绍了InfoPath表单提交时的Sharepoint自定义电子邮件事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

客户希望在将新的InfoPath表单提交到SharePoint 2007安装程序上的特定文档库时,希望发送给选定组的电子邮件通知。

A customer wants an e-mail notification sent to a select group of people when a new InfoPath form is submitted to a particular Document Library on their SharePoint 2007 setup.

轻松吧?在InfoPath中使用自定义的电子邮件提交规则,在地址中,使用一个花哨的方程来构建一个有用的电子邮件主题行...并完成。像一个魅力一样工作问题在短短几分钟内解决了。

Easy, right? Use a custom set of rules for an e-mail submission in InfoPath, plop in the addresses, use a fancy equation to construct a useful e-mail subject line... and done. Worked like a charm. Problem solved in just a few minutes...

但是,客户不希望将整个表单通过电子邮件发送或甚至附加到电子邮件中。他们只需要在一个非常简单的消息中从表单中选择几个字段。

However, the customer doesn't want the whole form e-mailed out or even attached to the e-mail. They only want a few select fields from the form in a very simple message.

我已经尝试编写一个 ItemAdded 来自 SPItemEventReceiver 基类的事件处理程序,但它似乎没有任何作用。是的,我将事件处理程序添加到GAC中,并创建了一个Feature.xml和Elements.xml来向SharePoint注册事件处理程序。但是,我不知道这是否是适合定制的事件。文件库中的项目是否与列表中的项目相同?

I've tried writing an ItemAdded event handler from the SPItemEventReceiver base class, but it doesn't seem to do anything. Yes, I added the event handler to the GAC and created a Feature.xml and Elements.xml to register the event handler with SharePoint. But, I'm not sure if this is even the right event to customize. Is an item in a Document Library the same as an item in a List?

有没有人有运气做类似的电子邮件通知事件?有没有更简单的方法来完成我正在尝试的?也许有一种方法可以通过SharePoint界面轻松完成,或者将电子邮件提交规则的内容编辑为表单的简化版本?

Has anyone had luck doing a similar e-mail notification event? Is there an easier way to accomplish what I'm attempting? Perhaps there's a way to do this easily through the SharePoint interface or edit the contents of the e-mail submission rule to be a simplified version of the form?

任何建议是非常感谢!

推荐答案

如何在上传表单时触发一个非常简单的SharePoint Designer工作流程。从那里你发送电子邮件,并将电子邮件正文中的(导出)列的内容包含在内。

How about a very simple SharePoint Designer workflow that is triggered when the form is uploaded. From there you send an email and include content of the (exported) columns in an email body.

这篇关于InfoPath表单提交时的Sharepoint自定义电子邮件事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆