Contents
Requirement: Call REST API in SharePoint designer workflow. SharePoint Designer workflow actions are very limited, and we can utilize REST API calls to extend them. Here is how to call a REST API method from SharePoint Designer workflow action: Call HTTP Web Service.
How does the workflow work in SharePoint 2013?
SharePoint 2013 workflows are built upon the add-ins model for SharePoint, and they use REST APIs to interact with SharePoint data. To learn more, go to Get to know the SharePoint 2013 REST service. A request is a network call from the workflow service to a SharePoint or Project REST API endpoint.
A request is a network call from the workflow service to a SharePoint or Project REST API endpoint. There’s no difference between the kind of request or the response for a given request.
How to use web services in SharePoint Designer?
Microsoft introduced support for calling web services in Workflow Manager using the new Call HTTP Web Service action in SharePoint Designer 2013. Workflow Manager also introduced support for creating structures to submit to web services as well as consuming their responses using the Dictionary variable type.
How to get a list item using REST-API?
You can check how to get a list item using REST-API programmatically. The same example we have utilized for the reference in this article. Open SharePoint Designer. Here, we have shown List workflow. Click on List Workflow from Ribbon and add workflow details. Make sure you select latest platform Type – SharePoint 2013 Workflow
Is the REST API supported in SharePoint 2013?
Since the $json option is not supported in SharePoint 2013 REST API, to get the the response in a JSON format, you will have to update the Accept and Content-Type http headers of your Rest http call to be more specific. Now, let’s get back to our Workflow in SharePoint Designer 2013.
Open SharePoint Designer. Here, we have shown List workflow. Click on List Workflow from Ribbon and add workflow details. Make sure you select latest platform Type – SharePoint 2013 Workflow In Stage 1, click on Action from Ribbon and then from dropdown select, Build Dictionary.