Premier Field Engineer Gunjan Datta demonstrates how to start a SharePoint workflow using the REST API.
This post will give an example of starting a SharePoint workflow using the REST API. The gd-sprest library was recently updated to include the SharePoint Workflow REST API endpoints, which we will be using for this example.
2010 vs 2013 Workflows
The REST API only supports the ability to start a SharePoint 2013 workflow. In order to start a 2013 workflow using the REST API, you will need to get the Subscription Id of the workflow, and the list item id of the target item to run the workflow against.
0 comments