SharePoint 2013 and later REST Tester! (SharePointRESTtester)
This tool is used to build and test the REST API for SharePoint 2013 and later. It currently only supports JSON data and not XML.
For info see Tech Training Notes blog or GitHub.
Select a sample from this list, or add your URL and JSON to test.
Body: Must use single quotes!
Call the web service and run the code!
Show the AJAX Code
Show the workflow steps
Experiment with the JSON results!
Steps to add this REST call to a SharePoint 2013 workflow
These steps are for the URL, method, header and body entered above!
Add Build Dictionary Action for the header values.
Add a Build Dictionary action.
Click "Add", enter data and click OK for each of the following.
Click "Create a new variable".
Add a second Dictionary with these values and save to a variable named dataType.
Add a third Dictionary with these values and save to a variable named requestContent.
Value: Variable: dataType (from the fx button)
Add a fourth Dictionary with these values and save to a variable named requestContent.
Value: Variable: requestData
Add Call HTTP Web Service Action.
Add a Call HTTP Web Service action.
Enter URL with the query string or...
Click "Add or Change Lookup".
From "Data Source" select "Workflow Context".
From "Field from source" select "Current Site URL".
Add the following: (with the correct site path!)
Set the HTTP method to: HTTP .
Click the dropdown and click Properties.
Click "RequestHeaders" and select "requestHeaders" from the dropdown.
Click "RequestContent" and select "requestContent" from the dropdown.
Click "ResponseContent" and select "Create New Variable" from the dropdown, enter "responseData" and click OK.
Add a Get an Item from a Dictionary Action so you can display some results.
Add a Get an Item from a Dictionary action.
Click "item by name or path".
(You will need to know the data that's being returned to complete this.) Example: test
Click "dictionary" and select "responseData".
Click "item" and enter a variable name for your retrieved data.
Do something with your retrieved data! Log it, add to a list or send as part of an email!