Quantcast
Channel: jQuery Library for SharePoint Web Services
Viewing all articles
Browse latest Browse all 6517

Updated Wiki: $().SPServices.SPGetListItemsJson

$
0
0

Function

$().SPServices.SPGetListItemsJson

Certification

Certified for SharePoint 2007Certified for SharePoint 2010

Functionality

SPGetListItemsJson combines several SPServices capabilities into one powerful function. By calling GetListItemChangesSinceToken, parsing the list schema, and passing the resulting mapping and data to SPXmlToJson automagically, we have a one-stop shop for retrieving SharePoint list data in JSON format. No manual mapping required!

Prerequisites

None

Syntax

changeToken
The changeToken as returned by GetListItemChangesSinceToken. This token can be passed to subsequent calls to the function. The various parts of the changeToken have specific meaning, but you should treat it as an immutable string.

mapping
The mapping used to parse the data into JSON. This mapping will include any specific overrides you specified as well as the automatically created mappings. You can pass this mapping into the function on subsequent calls to reduce overhead, though the function saves the mapping in a local data store for reuse.

data
The main reason we make the call, the data property is an object containing all of the retrieved data in JSON format, as specified in SPXmlToJson.

deletedIds
If this is call 2-n to the function, deletedIds will contain an array of IDs for list items which have been deleted since the prior call.

Example

TBD


Viewing all articles
Browse latest Browse all 6517

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>