OneDrive Connector
Documentation
Version: 8
Documentation

Table SharedWithMe


Parameters

Parameter Label Required Options Description Help
Filter Filter NO
SearchType SearchType NO

Supported Operations

Below section contains supported CRUD operations. Each operation is executed by some EndPoint behind the scene.
Method Supported Reference EndPoint
SELECT list_files
INSERT
UPDATE
UPSERT
DELETE delete_item
LOOKUP

Examples

SSIS

Use OneDrive Connector in API Source component to read data or in API Destination component to read/write data:

Read from SharedWithMe (Not valid for Application Creds or other user) table using API Source

OneDrive
SharedWithMe (Not valid for Application Creds or other user)
SSIS API Source - Read from table or endpoint

Read/write to SharedWithMe (Not valid for Application Creds or other user) table using API Destination

OneDrive
SharedWithMe (Not valid for Application Creds or other user)
Select
SSIS API Destination - Access table operation

ODBC application

Use these SQL queries in your ODBC application data source:

List All Files and Folders Shared with Me

Lists all files / folders shared with me. To List shared file inside a specific folder use FilesFolders table (e.g. select * from FilesFolders WITh(DriverId='zzzzz', SearchPath='zzzz') ). Provide DriveId (Found in SharedWithMe Table - see remoteItem_parentReference_driveId column) and optionally supply SearchPath (e.g. /root:/folder/subfolder: ) from which you like to list files/folders.

SELECT * FROM SharedWithMe

SQL Server

Use these SQL queries in SQL Server after you create a data source in Data Gateway:

List All Files and Folders Shared with Me

Lists all files / folders shared with me. To List shared file inside a specific folder use FilesFolders table (e.g. select * from FilesFolders WITh(DriverId='zzzzz', SearchPath='zzzz') ). Provide DriveId (Found in SharedWithMe Table - see remoteItem_parentReference_driveId column) and optionally supply SearchPath (e.g. /root:/folder/subfolder: ) from which you like to list files/folders.

DECLARE @MyQuery NVARCHAR(MAX) = 'SELECT * FROM SharedWithMe';

EXEC (@MyQuery) AT [LINKED_SERVER_TO_ONEDRIVE_IN_DATA_GATEWAY];