Thursday, 15 September 2011

Open a sharepoint designer 2010 workflow as wsp with visual studio 2010


To open a sharepoint designer 2010 workflow as wsp with visual studio 2010 you need to first save it as a wsp and then import it with VS 2010

Here are the Steps -

1. Once done creating the workflow, click the Save button at the top of SharePoint Designer to save the workflow and then click the Publish button to deploy the workflow to your SharePoint site.

2. Click Workflows in the Navigation pane.

3. Click SPD Task Workflow under Reusable Workflow.

4. On the ribbon, click Save as Template to save the workflow as a .wsp file.

5. Next, Open your SharePoint site in a browser and navigate to Site Actions-> View All Site content click on Site Assets.

Here you would see your .wsp file.

6.Click on the wsp file and save from the File Download dialog box to your local file system.

Upload in Visual Studio - Import the .wsp file into Visual Studio by using an Import Reusable Workflow project. This project converts the workflow from a reusable, declarative workflow into a code workflow. After the workflow is converted, you will use code to modify its behavior.

Steps -

1.In Visual Studio add a new Project by File -> New Project.

2. Click Import Reusable Workflow in the Templates pane.

3. The SharePoint Customization Wizard appears.

4. Next, on the Specify the site and security level for debugging page in the wizard enter the URL for your SharePoint site.

5. Kepp the "trust level for this SharePoint solution" to be "Deploy as a farm solution"

6. In Specify the new project source page, browse to the location on the system where you previously saved the .wsp file and then click Next.

7. Click Finish on this page to import all available items in the .wsp file

Ads by Google

No comments:

Post a Comment