Deploy Sharepoint Designer 2010 Workflow as WSP

When we hv completed a workflow on Sharepoint Designer 2010. A question come up, how can we deploy it as a wsp file?

Following steps:

1. Clicks Save as Template at the top toolbar. the wsp will be saved on site assets.

2. Download the wsp on site assets to local.

3. Goto Solutions, upload the wsp and activate it.

4. Goto Manage Site Features, activate the workflow feature.

5. If the workflow has some send email actions. We can goto central admin, system settings, Configure outgoing e-mail settings, set smtp host and from address. Also u can send email by coding by using Microsoft.SharePoint.Utilities.SPUtility.SendEmail(SPContext.Current.Web,true,true,"email address","subject","body",false);

你可能感兴趣的:(SharePoint)