Reference

Table SharedWithMe


Description

No description available

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

API Source - OneDrive
OneDrive Connector can be used to integrate OneDrive and your defined data source, e.g. Microsoft SQL, Oracle, Excel, Power BI, etc. Get, write, delete OneDrive data in a few clicks!
OneDrive
SharedWithMe (Not valid for Application Creds or other user)
Required Parameters
Record Filter (Client Side) Fill-in the parameter...
Drive Id / Shared Folder Fill-in the parameter...
Optional Parameters
Default Group or User Id (additional Scopes needed to list - If fails enter manually)
Search Type (Default=Recursive) search(q='')
Search Path (Default=Root Folder) - Max 200 listed /root
Order By Field(s) - Only for Recursive SearchType
SSIS API Source - Read from table or endpoint

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

API Destination - OneDrive
OneDrive Connector can be used to integrate OneDrive and your defined data source, e.g. Microsoft SQL, Oracle, Excel, Power BI, etc. Get, write, delete OneDrive data in a few clicks!
OneDrive
SharedWithMe (Not valid for Application Creds or other user)
Select
Required Parameters
Record Filter (Client Side) Fill-in the parameter...
Drive Id / Shared Folder Fill-in the parameter...
Optional Parameters
Default Group or User Id (additional Scopes needed to list - If fails enter manually)
Search Type (Default=Recursive) search(q='')
Search Path (Default=Root Folder) - Max 200 listed /root
Order By Field(s) - Only for Recursive SearchType
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 [LS_TO_ONEDRIVE_IN_GATEWAY];