In this article, you will learn how to create a list, using HTTP Web Service in SharePoint Designer 2013 Workflow.
Introduction Call HTTP Web Service is a new action, introduced in SharePoint 2013 Designer Workflows. This action allows you to make simple calls to a Web Service easily or, if needed, you can create more complex calls, using HTTP verbs, as well as allowing you to add HTTP headers. The Call HTTP Web Service action lets you specify any of the several request methods, including GET, PUT, POST and DELETE. This lets you tell the Web Services, specifically RESTful services, what to do on the Service that you’ve specified with the URL property on the activity. For more details, please refer to the link. In this article, I will be using the list, given below, to create and execute the Workflow. Endpoint URI To create a list in SharePoint site endpoint URL will be http://sitename/_api/web/lists. HTTP Request POST – To create entities such as lists and sites. Workflow Design Forbidden or Unauthorized Issue When you try to call HTTP Web Service to create list (HTTP POST), you will get the response code as forbidden or unauthorized as shown below. You will get the error, when you try to access the objects in SharePoint, that requires the elevated permissions. , By creating a Workflow with the elevated permissions you will be able to solve this issue. You will be performing the following steps:
Reference: https://msdn.microsoft.com/en-us/library/office/jj822159.aspx Activate Workflows can use app Permissions feature
Grant full permissions to Workflow
Create List Workflow
Create Workflow Local Variables
Stage- Create List
Publish the Workflow In the top navigation bar, click Publish. The Workflow will be published successfully. Test the Workflow
Summary Thus, in this article, you have seen, how to create a list, using HTTP Web Service in SharePoint Designer 2013 Workflow.
Essentials of Capacity Planning: Microsoft SharePoint Server 2010