spListDocuments
Lists documents in a document library.
Required Parameters
| |
| library | The name(or id) of the library, or the relative url that points to a folder in the library. | |
Optional Parameters
| |
| fields | Comma separated list of 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 | '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. | |
| recurse | Determines if to traverse subfolder tree to get items. The allowed values are: true, false. | |
| outputitemurls | Determines whether to output the item The allowed values are: TRUE, FALSE. | |
Output Attributes
| |
| sp:title | The title of the document. | |
| sp:id | The ID of the document. | |
| sp:modifiedby | The person who modified the document. | |
| sp:createdby | The person who created the document. | |
| sp:created | The date when the document was created. | |
| sp:modified | The date when the document was modified. | |
| sp:version | The version of the document. | |
| sp:contenttype | The content type of the item. | |
| sp:filesize | The file size of the document. | |
| sp:filetype | The file type (extension) of the document. | |
| sp:checkincomment | The comments, if any, added to the dcoument when it was checked in. | |
| sp:checkedoutto | The person, if any, the document has been checked out by. | |