InfoPath 表单提交后 Sharepoint 的自定义电子邮件事件
当将新的 InfoPath 表单提交到其 SharePoint 2007 设置上的特定文档库时,客户希望向选定的一组人员发送电子邮件通知。
容易,对吧?在 InfoPath 中使用一组自定义的电子邮件提交规则,输入地址,使用一个奇特的方程式构建有用的电子邮件主题行......然后就完成了。工作起来就像一个魅力。问题在短短几分钟内就得到了解决...
但是,客户不希望通过电子邮件发送整个表格,甚至不希望将其附加到电子邮件中。他们只想在一条非常简单的消息中从表单中选择一些字段。
我尝试从 SPItemEventReceiver
基类编写一个 ItemAdded
事件处理程序,但它似乎没有执行任何操作。是的,我将事件处理程序添加到 GAC 并创建了一个 Feature.xml 和 Elements.xml 以向 SharePoint 注册事件处理程序。但是,我不确定这是否是定制的正确事件。文档库中的项目与列表中的项目相同吗?
有没有人有幸做过类似的电子邮件通知活动?有没有更简单的方法来完成我正在尝试的事情?也许有一种方法可以通过 SharePoint 界面轻松完成此操作,或者将电子邮件提交规则的内容编辑为表单的简化版本?
非常感谢任何建议!
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.
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.
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?
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?
Any advice is greatly appreciated!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
上传表单时触发的非常简单的 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.