Skip to content

Instantly share code, notes, and snippets.

View jakemannion's full-sized avatar

Jake Mannion jakemannion

View GitHub Profile

Retrieving list item changes with the SharePoint Online Folder.GetListItemChanges REST API in Microsoft Flow

About

This post demonstrates how to retrieve SharePoint list item changes in Microsoft Flow using the SharePoint - Send an HTTP request to SharePoint action and the SharePoint Online Folder.GetListItemChanges REST API.

Why

This is something I started looking at after reading this set of tweets by John Liu:

@vgrem
vgrem / sp.rest.search.js
Created February 23, 2015 12:34
Demonstrates how to query all search results using SharePoint 2013 Search REST API
function search(webUrl,queryText,rowLimit,startRow,allResults)
{
var allResults = allResults || [];
var url = webUrl + "/_api/search/query?querytext='" + queryText + "'&rowlimit=" + rowLimit + "'&startrow=" + startRow;
return $.getJSON(url).then(function(data) {
var relevantResults = data.PrimaryQueryResult.RelevantResults;
allResults = allResults.concat(relevantResults.Table.Rows);
if (relevantResults.TotalRows > startRow + relevantResults.RowCount) {
return search(webUrl,queryText,rowLimit,startRow+relevantResults.RowCount,allResults);
}