.getListItems()


Functionality

This will return items from a normal SharePoint list, but not a SharePoint calendar list! If the list you would like data returned from is a calendar, use .getCalendarEvents() instead.

Syntax

spcalpro.getListItems(data)

Example

spcalpro.getListItems({
    listName: "Employees"                         // The only required field.
}).ready(function(data, obj.error) {
    if (obj.error) console.error(obj.error);
    console.table(data);
});