Skip to content

Instantly share code, notes, and snippets.

View PatD's full-sized avatar

Patrick Doran PatD

View GitHub Profile
@PatD
PatD / SharePoint 2010 SP Services get list item counts in a collection
Created January 21, 2015 21:23
SharePoint 2010 - SP Services - get list item counts in a collection
// Assumes jQuery and SP Services
// Outputs all lists and their item count
// From @sympmarc http://sympmarc.com/2010/09/19/down-and-dirty-spservices-solution-to-solve-an-emergency-request/
$(document).ready(function() {
$().SPServices({
operation: "GetAllSubWebCollection",
async: true,
completefunc: function (xData, Status) {
$(xData.responseXML).find("Web").each(function() {