使用Vs2010在SharePoint中的自定义工作流程 [英] Custom workflow in sharepoint using Vs2010

查看:82
本文介绍了使用Vs2010在SharePoint中的自定义工作流程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个场景.

我需要在VS2010中为sharepoint 2010编写工作流.

我有一个客户经理名单,当经理向人力资源团队提出候选人要求时,应将一封电子邮件发送给人力资源团队,如果人力资源团队做出回应,则应通过电子邮件将其发回给经理.

简而言之,我应该如何编写代码以使用工作流发送电子邮件通知?
以上所有操作都应使用VS2010中的工作流完成.

有人可以帮我吗????

I have a scenario.

I need to code a workflow for sharepoint 2010 in VS2010.

I have a Account manager list.When the manager raise a request of candidate to Human resource team, an email should be sent to HR team.If HR team responds, it should be emailed back to Manager.

Briefly, how should I code to send email notification using workflow??
All the above should be done using workflow in VS2010.

Can someone help me please ????

推荐答案

我找到了解决此要求的方法

1.创建顺序工作流.
2.将发送电子邮件"活动拖放到onWorkflowActivated1下.
3.将SendEmail1活动的相关令牌设置为与您的工作流程1相同.
4.双击SendEmail1活动,该活动创建一个方法-sendEmail1_MethodInvoking.
5.添加这些行以发送邮件-

< pre> sendEmail1.To ="Someone@someDoamin.com";
sendEmail1.From ="Someone@someDoamin.com";
sendEmail1.Subject =测试邮件";
sendMail1.Body =这是一封测试邮件";</pre>

6.构建并部署您的解决方案.
7.将此工作流添加到成功部署的列表中.
8.将此列表激活为特定的列表项.
9.请在Central Administartion中检查外发电子邮件"设置.

所有人!
I found out solution to this requirement

1.Create a sequential workflow.
2.Drag and drop Send Email activity below the onWorkflowActivated1.
3.Set the correlation token of SendEmail1 activity same as that of your workflow1.
4.Double click on the SendEmail1 activity which creates a method - sendEmail1_MethodInvoking.
5.Add these lines to send a mail -

<pre>sendEmail1.To = "Someone@someDoamin.com";
sendEmail1.From = "Someone@someDoamin.com";
sendEmail1.Subject = "Test Mail";
sendMail1.Body = "This is a test mail";</pre>

6.Build and deploy your solution.
7.Add this workflow to your list on successful deployment.
8.Activate this list to a prticular list item.
9.Do check your Outgoing Email settings in Central Administartion.

That''s all folks !


^ ]


这篇关于使用Vs2010在SharePoint中的自定义工作流程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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