SharePoint workflow samples

Provides sample workflows to help illustrate how to create and implement SharePoint workflows in the new Workflow Manager Client 1.0 framework.

Workflow samples for SharePoint

This series of sample workflows was developed to demonstrate the large range of workflow capabilities in SharePoint. They were developed using Visual Studio 2012 and are available in the MSDN Samples Gallery. Links to the individual samples are provided.

Note

SharePoint 2010 workflows have been retired since August 1, 2020 for new tenants and removed from existing tenants on November 1, 2020. If you’re using SharePoint 2010 workflows, we recommend migrating to Power Automate or other supported solutions. For more info, see SharePoint 2010 workflow retirement.

SharePoint workflow: Call an external web service

This sample uses Visual Studio to demonstrate creating a workflow that calls an external web service using the HttpGet activity. In calling the web service, the workflow also uses the new DynamicValue data type.

The sample, along with a readme file, is available here: SharePoint workflow: Call an external web service

SharePoint workflow: Create a custom action

This sample uses Visual Studio to demonstrate creating a workflow that calls an external web service. In calling the web service, the workflow also uses the new DynamicValue data type. The part of the workflow that calls the web service and extracts the details from the response is contained within a custom activity, GetNWCustomerDetailsWorkflow.

The sample, along with a readme file, is available here: SharePoint workflow: Create a custom action

SharePoint workflow: Sales tax calculator

In this end-to-end sample, the workflow uses a web service to obtain the appropriate tax rate based on a purchaser's location, and then uses the base price to calculate the sales tax and total price.

The sample, along with a readme file, is available here: SharePoint workflow: Sales tax calculator

SharePoint workflow: Use a task action in SharePoint Designer

An extended walkthrough of the process of implementing task actions in a workflow created using Microsoft SharePoint Designer 2013.

The sample, along with a readme file, is available here: SharePoint workflow: Using a task action in SharePoint Designer

SharePoint workflow: Workflow OM in a SharePoint app

The SharePoint workflow: Workflow OM in a SharePoint app code sample is an example of an interactive SharePoint-hosted app that uses the SharePoint workflow JSOM to deploy workflow definitions to both an app web and to a "parent web" (that is, a SharePoint web that is hosting the app).

You can locate the sample code here: SharePoint workflow: Workflow OM in a SharePoint app.

See also