Welcome to an article on how to configure Web Request in SharePoint 2013 and Office 365 using Nintex Workflows. This article will display the action “Web Request” so that all my developer friends don’t have to spend much time and effort while using this function in their projects.
Using this action you can send HTTP request to a URL and perform requests many kind of requests which we will see on the configuration part of the workflow. Let’s see the implementation of this functionality.
- Create a list Dev Testing.
- Click on the LIST tab on the Top ribbon and click on Nintex Workflows.
- You will see the following screen, to create a new workflow.
- Click on “Create new workflow”.
- You will come to the design phase of the Nintex workflows.
- Add the action, “Web Request” either by right click on the workflow or by dragging and dropping from the left toolbox.
- Now let’s configure it.
- When you double click on the action the following screen opens up.
- URL: Here you can assign the url from where you want to get web request from.
- Method: Specify the method which is to be used for the request.- GET
– SOAP 1.1
– SOAP 1.2
- Body: Here you can add data for the request. GET Method will not require any Data.
- Username: Provide here the username.
- Password: Provide here the password.
- Store response content in: Here you can specify a text variable to store the value of the response to this request.
- Store http status code in: Here you can specify an integer variable to store the numeric response code for this request.
- Store response headers in: Here you can specify a collection or a dictionary variable to store response header for this request.
- Store response cookies in: Here you can specify a collection or a dictionary variable to store response cookie for this request.
- Now we have configured our workflow, let’s go and publish it to use it.
- Click on Publish on the left corner of the ribbon of Nintex Designer.
- You will see the following screen.
- Give your workflow a name.
- Choose your task list where it should store the tasks, It will be Workflow Tasks by default.
- Choose your history list where it should store the history logs, It will be Workflow History by default.
- Start Options:- You can either start your workflow manually.
– Or you can start your workflow automatically when an item is created. In our case we will make it as Start when items are created.
– Or you can start your workflow automatically when an item is modified.
- Click on Publish.
- Your workflow will get published.
The values which you received and store in the variables, can be updated to a list item so when you run this workflow, it will create a new item with all the values of the variables updated on the list as an item.
So in this article we saw how to Configure Web Request in SharePoint 2013 and Office 365 using Nintex Workflows, we will see more new articles on the actions of Nintex Workflows in the other parts of the article. Till then, keep learning!