Documents
Create, update, delete, and query Documents from SharePoint libraries.
Table Specific Information
Select
To pull items in a folder, you need to use the either the Path or FileDirRef field (depending on
whether UseDisplayNames is True or False respectively) in the WHERE clause. For example:
SELECT * FROM MyDocumentLibrary WHERE SubFolder='MyDocumentLibrary/MyFolder'
Insert
The Title column is required to insert to this table.
Columns
| Name | Type | ReadOnly | Description |
| ID [KEY] | String | True |
The ID of the document. The format of the ID is: List|ItemID. |
| List | String | False |
The name of the document list. |
| LinkFileName | String | False |
The title of the document. |
| CheckOutUser | String | False |
The user that the document is checked out to. |
| Author | String | False |
The user that created the item. |
| Editor | String | False |
The last user that modified the item. |
| Modified | Date | False |
The date modified. |
| Created | Date | False |
The date created. |
Pseudo-Columns
Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.
| Name | Type | Description |
| Subfolder | String |
A subfolder to specify if you would like to list documents in subfolders as well. Use * to denote all subfolders. The default value is *. |
| CAMLQuery | String |
The query to be used while listing the list items. |