{"id":38385,"date":"2020-01-29T11:23:43","date_gmt":"2020-01-29T18:23:43","guid":{"rendered":"http:\/\/devblogs.microsoft.com\/premier-developer\/?p=38385"},"modified":"2020-01-27T11:30:19","modified_gmt":"2020-01-27T18:30:19","slug":"start-a-sharepoint-workflow-using-rest","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/premier-developer\/start-a-sharepoint-workflow-using-rest\/","title":{"rendered":"Start a SharePoint Workflow using REST"},"content":{"rendered":"<p>Premier Field Engineer <a href=\"https:\/\/www.linkedin.com\/in\/gunjandatta\/\">Gunjan Datta<\/a> demonstrates how to start a SharePoint workflow using the REST API.<\/p>\n<hr \/>\n<p>This post will give an example of starting a SharePoint workflow using the REST API. The <a href=\"https:\/\/github.com\/gunjandatta\/sprest\">gd-sprest<\/a> library was recently updated to include the SharePoint Workflow REST API endpoints, which we will be using for this example.<\/p>\n<h3 id=\"2010-vs-2013-workflows\">2010 vs 2013 Workflows<\/h3>\n<p>The REST API <em>only<\/em> 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 <em>Subscription Id<\/em> of the workflow, and the list item id of the target item to run the workflow against.<\/p>\n<p><a href=\"https:\/\/dattabase.com\/blog\/start-workflow-using-rest\">Continue reading on Gunjan&#8217;s blog.<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>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.<\/p>\n","protected":false},"author":582,"featured_media":37840,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[8745],"tags":[324,335,3,8746],"class_list":["post-38385","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-sharepoint","tag-rest","tag-sharepoint","tag-team","tag-workflow"],"acf":[],"blog_post_summary":"<p>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.<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/posts\/38385","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/users\/582"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/comments?post=38385"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/posts\/38385\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/media\/37840"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/media?parent=38385"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/categories?post=38385"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/tags?post=38385"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}