spListItems
Lists the items in the specified list. If filter is not specified the operation will list only the items seen in the default View. Use ViewName, or CAML query to see more items.
Required Parameters
| |
| list | The name (or id) of the list. | |
Optional Parameters
| |
| fields | Comma separated list of item fields that should be included in the results. Use [ALL] to list all available fields. | |
| siteurl | The absolute url of the target web site. The siteurl must be provided if you need to work out of SharePoint. | |
| filter | The filter used to search the items. Use 'filtertype' to specify the type of filter. | |
| recurse | Determines if to traverse subfolder tree to get items. The allowed values are: true, false. | |
| filtertype | 'ViewName' indicates an exsiting SPView to be used as the filter(for instance, filter=ALL Items). 'QueryString' indicates CAML query string to be used as the filter, please refer to http://msdn.microsoft.com/en-us/library/ms467521.aspx for more information). 'Expression' indicates DataColumn expressions to be used as the filter(for instance, filter=ID>5, refer to http://msdn.microsoft.com/en-us/library/system.data.datacolumn.expression.aspx for more information). The allowed values are: ViewName, QueryString, Expression. | |
| outputitemurls | Determines whether to output the item The allowed values are: TRUE, FALSE. | |
Output Attributes
| |
| sp:title | The title of the item. | |
| sp:id | The ID of the item. | |
| sp:modifiedby | The person who modified the item. | |
| sp:createdby | The person who created the item. | |
| sp:created | The date when the item was created. | |
| sp:modified | The date when the item was modified. | |
| sp:version | The version of the item. | |
| sp:contenttype | The content type of the item. | |