Files
The OneDrive table Files in which you can view all the files in a drive.
Table Specific Information
Projection is done server-side. Also, queries that include the primary key Id and IN are executed server-side, e.g.:
SELECT Id, Name, audio_album, audio_title FROM Files WHERE Id IN ('B1E6BJ084A9133KB1!101', 'APF9D2K6WFA524Y')
File listing is done recursively via the DirectoryRetrievalDepth property. This property's default value is 5, which means it will get data only for the first 6 levels of the 'Drive' you've chosen (because the first level is located in DirectoryRetrievalDepth=0).
You can specify the value -1 to get all the files in the 'Drive' no matter the depth they're located in.
While files may be listed in this view, the contents of the files may be worked with by using stored procedures such as:
- CopyResource - Copy a file/folder from one directory in your drive to another.
- DeleteResource - Delete a file/folder from your drive.
- DownloadFile - Download an existing file from your drive.
- MoveResource - Move a file/folder from one directory in your drive to another.
- UploadFile - Upload a new file or update content to an existing file.
Columns
Name | Type | References | Description |
id [KEY] | String | The id column for the table Files. | |
audio_album | String | The audio_album column for the table Files. | |
audio_albumArtist | String | The audio_albumArtist column for the table Files. | |
audio_artist | String | The audio_artist column for the table Files. | |
audio_bitrate | Int64 | The audio_bitrate column for the table Files. | |
audio_composers | String | The audio_composers column for the table Files. | |
audio_copyright | String | The audio_copyright column for the table Files. | |
audio_disc | Int32 | The audio_disc column for the table Files. | |
audio_discCount | Int32 | The audio_discCount column for the table Files. | |
audio_duration | Int64 | The audio_duration column for the table Files. | |
audio_genre | String | The audio_genre column for the table Files. | |
audio_hasDrm | Boolean | The audio_hasDrm column for the table Files. | |
audio_isVariableBitrate | Boolean | The audio_isVariableBitrate column for the table Files. | |
audio_title | String | The audio_title column for the table Files. | |
audio_track | Int32 | The audio_track column for the table Files. | |
audio_trackCount | Int32 | The audio_trackCount column for the table Files. | |
audio_year | Int32 | The audio_year column for the table Files. | |
content | String | The content column for the table Files. | |
createdDateTime | Datetime | The createdDateTime column for the table Files. | |
createdBy_user_id | String |
Users.Id | The createdBy_user_id column for the table Files. |
cTag | String | The cTag column for the table Files. | |
deleted_state | String | The deleted_state column for the table Files. | |
description | String | The description column for the table Files. | |
eTag | String | The eTag column for the table Files. | |
file_mimeType | String | The file_mimeType column for the table Files. | |
file_processingMetadata | Boolean | The file_processingMetadata column for the table Files. | |
fileSystemInfo_createdDateTime | Datetime | The fileSystemInfo_createdDateTime column for the table Files. | |
fileSystemInfo_lastModifiedDateTime | Datetime | The fileSystemInfo_lastModifiedDateTime column for the table Files. | |
folder_childCount | Int32 | The folder_childCount column for the table Files. | |
image_height | Int32 | The image_height column for the table Files. | |
image_width | Int32 | The image_width column for the table Files. | |
lastModifiedDateTime | Datetime | The lastModifiedDateTime column for the table Files. | |
location_altitude | Double | The location_altitude column for the table Files. | |
location_latitude | Double | The location_latitude column for the table Files. | |
location_longitude | Double | The location_longitude column for the table Files. | |
name | String | The name column for the table Files. | |
package_type | String | The package_type column for the table Files. | |
parentReference_driveId | String | The parentReference_driveId column for the table Files. | |
parentReference_id | String |
Folders.Id | The parentReference_id column for the table Files. |
parentReference_name | String | The parentReference_name column for the table Files. | |
parentReference_path | String | The parentReference_path column for the table Files. | |
parentReference_shareId | String | The parentReference_shareId column for the table Files. | |
photo_cameraMake | String | The photo_cameraMake column for the table Files. | |
photo_cameraModel | String | The photo_cameraModel column for the table Files. | |
photo_exposureDenominator | Double | The photo_exposureDenominator column for the table Files. | |
photo_exposureNumerator | Double | The photo_exposureNumerator column for the table Files. | |
photo_fNumber | Double | The photo_fNumber column for the table Files. | |
photo_focalLength | Double | The photo_focalLength column for the table Files. | |
photo_iso | Int32 | The photo_iso column for the table Files. | |
photo_takenDateTime | Datetime | The photo_takenDateTime column for the table Files. | |
remoteItem_createdDateTime | Datetime | The remoteItem_createdDateTime column for the table Files. | |
remoteItem_id | String | The remoteItem_id column for the table Files. | |
remoteItem_lastModifiedDateTime | Datetime | The remoteItem_lastModifiedDateTime column for the table Files. | |
remoteItem_name | String | The remoteItem_name column for the table Files. | |
remoteItem_size | Int64 | The remoteItem_size column for the table Files. | |
remoteItem_webDavUrl | String | The remoteItem_webDavUrl column for the table Files. | |
remoteItem_webUrl | String | The remoteItem_webUrl column for the table Files. | |
searchResult_onClickTelemetryUrl | String | The searchResult_onClickTelemetryUrl column for the table Files. | |
shared_scope | String | The shared_scope column for the table Files. | |
sharepointIds_listId | String | The sharepointIds_listId column for the table Files. | |
sharepointIds_listItemId | String | The sharepointIds_listItemId column for the table Files. | |
sharepointIds_listItemUniqueId | String | The sharepointIds_listItemUniqueId column for the table Files. | |
sharepointIds_siteId | String | The sharepointIds_siteId column for the table Files. | |
sharepointIds_webId | String | The sharepointIds_webId column for the table Files. | |
size | Int64 | The size column for the table Files. | |
specialFolder_name | String | The specialFolder_name column for the table Files. | |
video_bitrate | Int32 | The video_bitrate column for the table Files. | |
video_duration | Int64 | The video_duration column for the table Files. | |
video_height | Int32 | The video_height column for the table Files. | |
video_width | Int32 | The video_width column for the table Files. | |
webDavUrl | String | The webDavUrl column for the table Files. | |
webUrl | String | The webUrl column for the table Files. | |
UserId | String | The UserId column for the table Files. |