Google Drive ConnectorZappySys Google Drive Connector provide read / write capability inside your app (see list below), using these drag and drop, high performance connector you can perform many Google Drive operations without any coding. You can use this connector to integrate Google Drive data inside apps like SSIS, SQL Server or popular ETL Platforms / BI Tools/ Reporting Apps / Programming languages (i.e. Informatica, Power BI, SSRS, Excel, C#, JAVA, Python). |
Integrate Google Drive with these apps
Actions supported by Google Drive Connector
Google Drive Connector support following actions for REST API integration. If some actions are not listed below then you can easily edit Connector file and enhance out of the box functionality.Parameter | Description | ||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Search Criteria |
|
Parameter | Description | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Extra Query (must start with ' and ' --OR-- ' or ') |
|
||||||||||||||||||||||||
Search under Folder Id (Keep Blank for all folders) |
|
||||||||||||||||||||||||
Include files from trash |
|
||||||||||||||||||||||||
Search Item type (i.e. files or folders) |
|
Parameter | Description | ||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Search Criteria |
|
Parameter | Description |
---|---|
Search Criteria |
|
Parameter | Description |
---|---|
Id |
|
Parameter | Description |
---|---|
File Id |
|
Parameter | Description | ||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
File Id |
|
||||||||||||||||||||||||||||||||||||||
Export As (Mime Type) |
|
||||||||||||||||||||||||||||||||||||||
fields |
|
Parameter | Description | ||||||
---|---|---|---|---|---|---|---|
Keep Revision Forever |
|
||||||
Parent FolderId |
|
||||||
Shared DriveId |
|
||||||
Drive Type |
|
||||||
Supports all drives (e.g. My and Shared) |
|
||||||
Target FileName |
|
||||||
Local FilePath |
|
||||||
AddParents |
|
||||||
OcrLanguage |
|
||||||
UseContentAsIndexableText |
|
Parameter | Description | ||||||
---|---|---|---|---|---|---|---|
Keep Revision Forever |
|
||||||
Parent FolderId |
|
||||||
Shared DriveId |
|
||||||
Drive Type |
|
||||||
Supports all drives (e.g. My and Shared) |
|
||||||
Target FileName |
|
||||||
Local FilePath |
|
||||||
File Overwrite Mode |
|
||||||
AddParents |
|
||||||
OcrLanguage |
|
||||||
UseContentAsIndexableText |
|
Parameter | Description |
---|---|
Name |
|
Parent FolderId |
|
Parameter | Description |
---|---|
File Id |
|
Parameter | Description |
---|---|
File Id |
|
DiskFilePath |
|
KeepRevisionForever |
|
AddParents |
|
OcrLanguage |
|
UseContentAsIndexableText |
|
Parameter | Description | ||||||
---|---|---|---|---|---|---|---|
File Id |
|
||||||
Keep Revision Forever |
|
||||||
AddParents |
|
||||||
OcrLanguage |
|
||||||
UseContentAsIndexableText |
|
Parameter | Description | ||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Url |
|
||||||||||||||||||||||||||
Body |
|
||||||||||||||||||||||||||
IsMultiPart |
|
||||||||||||||||||||||||||
Filter |
|
||||||||||||||||||||||||||
Headers |
|
Parameter | Description |
---|---|
Url |
|
IsMultiPart |
|
Filter |
|
Headers |
|
SQL examples for Google Drive Connector
Use these example Google Drive SQL queries in any ODBC-compatible application:
Get my drive information [ Read more... ]
Gets my drive information
SELECT * FROM Drive
List all shared drives [ Read more... ]
List all shared drives
SELECT * FROM SharedDrives --WITH(Query='name = "HR"')
Get information about shared drive [ Read more... ]
Get information about shared drive
SELECT * FROM SharedDrives WITH(Query='name = "HR"')
List / search files from my drive [ Read more... ]
List or search files from my drive (use search query expression). Uncomment Query part to invoke filter
SELECT * FROM Files
WITH(
--Query='name contains "ZappySys*.*"', --includes files where name contains "zappysys" word
)
List / search files from a single shared drive [ Read more... ]
List or search files from a specific shared drive by driveId and search query expression. Uncomment Query part to invoke filter
SELECT * FROM Files
WITH(
--Query='name contains "ZappySys*.*"', --includes files where name contains "zappysys" word
DriveId='0AFWIggplk2z6Uk9PVA',
DriveType='drive',
SupportsAllDrives='true',
IncludeItemsFromAllDrives='true'
)
List / search files from all shared drives [ Read more... ]
List or search files from all shared drives by driveId and search query expression. Uncomment Query part to invoke filter
SELECT * FROM Files
WITH(
--Query='name contains "ZappySys*.*"', --includes files where name contains "zappysys" word
DriveType='allDrives',
SupportsAllDrives='true',
IncludeItemsFromAllDrives='true'
)
List / search items (files/folders) from a parent folder in recursive or non-recursive mode [ Read more... ]
This example shows how to list files from a parent folder, optionally you can specifiy item types to list (e.g. files, folders, sheets, documents). If you do not specify FolderId then recursive list is returned.
SELECT * FROM list_parent_items
WITH(
--Parent folder id (Keep it blank to scan all files in all folders - recursive
FolderId='1VK5NBhuOTaLEy1pBMsQtG672vrJNgxai'
--List only from Trash (deleted files)
, IncludeFromTrash='false'
--Extra search criteria
--, Query='or (name contains ''blog'') or (name contains ''test'') ' --extra query
--Item type to return (default is all)
--, ItemType='files' -- (default=all) all, files, folders, sheets, documents, files_native, files_exclude_native
--, ItemType='folders'
--, ItemType='sheets'
--, ItemType='files_native'
)
Dowload a file (my drive) [ Read more... ]
Downloads a file (from user my drive)
SELECT * FROM download_file
WITH(Id='1PpE2eSi5faAnMwiSolwr34zA5MwOdR3D'
,ResponseDataFile='C:\MyFiles\myfile.ext'
)
--You can get file Id by selecting from 'list_files' endpoint
Dowload a file from google shared drive [ Read more... ]
Dowload a file from google shared drive for which user has access
SELECT * FROM download_file
WITH(
DriveType='drive' --or set 'user' for mydrive
, DriveId='0AFWIggplk2z6Uk9PVA'
, Id='1hk7odj2Y2--yxN9DY0zW88hSnxqiyHq0' --file id
, ResponseDataFile='c:\temp\dump.zip'
--You can get file Id by selecting from 'list_files' endpoint
)
Upload local file to google shared drive folder (Overwrite if exists) [ Read more... ]
Upload a local file to google shared drive folder for which user has access. Donot set DriveId to upload to MyDrive rather than sahred drive.
SELECT *
FROM upload_file_overwrite
WITH(
DriveId='' --for my drive keep blank
--DriveId='0AC00HWQH144cUk9PVA' --team drive id (keep blank for uploading to my drive)
, DiskFilePath='C:\temp\dump.csv' --source file path
, FileName='dump.csv' --target file name
, ParentFolderId='root'
--OR--
--, ParentFolderId='1PRySfNNjWIp9ZAnhPh-u9tKRj3QOETSq'
--, FileOverwriteMode='AlwaysOverwrite'
--OR--
--, FileOverwriteMode='FailIfExists'
--, KeepRevisionForever='false'
)
Get file list [ Read more... ]
Downloads a file
SELECT * FROM Files
Update a file [ Read more... ]
Updates a file
UPDATE Files
WITH (Id='1EVzXFVBQIh3LcJvfcLhI1UWhW3qUxFkM'
,DiskFilePath='C:\MyFiles\myfile.ext')
--You can get file Id by selecting from 'list_files' endpoint
Delete a file [ Read more... ]
Deletes a file
DELETE FROM Files
WITH (Id='1gcu0hV34OTfgvcu9CFhr7Go4b35j5Mop')
--You can get file Id by selecting from 'list_files' endpoint
Delete a file by name from a shared drive [ Read more... ]
Delete a file by name from a shared drive
DELETE FROM Files where Name='dump.csv' and Trashed=0 WITH(DriveId='0AC00HWQH144cUk9PVA', DriveType='drive')
--You can get file Id by selecting from 'list_files' endpoint
Upload a file with INSERT keyword [ Read more... ]
Upload a file with INSERT keyword. Advantage of INSERT is you can use Bulk option using SOURCE clause. This way you can upload many files
INSERT INTO Files
WITH (FileName='My filename'
,DiskFilePath='C:\MyFolder\Mymyfile.ext'
,ParentFolderId='root'
)
--You can get ParentFolderId by selecting from 'list_folders' endpoint or just use 'root'
Delete a folder [ Read more... ]
Deletes a folder
DELETE FROM Folders
WITH (Id='1yDO11prsLH9DUrBTCadV6GGMJrITjF9I')
--You can get folder Id by selecting from 'list_folders' endpoint
Create a folder [ Read more... ]
Creates a folder
INSERT INTO Folders
WITH (Name='My folder name'
,ParentFolderId='root')
--You can get ParentFolderId by selecting from 'list_folders' endpoint or just use 'root'
Get file information [ Read more... ]
Gets file information
SELECT * FROM FileInfo
WITH (Id='1EVzXFVBQIh3LcJvfcLhI1UWhW3qUxFkM')
--You can get file Id by selecting from 'list_files' endpoint
Get items list [ Read more... ]
Gets items list
SELECT * FROM ItemsList
Get items list using query [ Read more... ]
Gets items list using query
SELECT Id, Kind, Name, MimeType
FROM list_items
WITH (Query = 'name contains ''.txt''')
Get files list [ Read more... ]
Gets files list
SELECT * FROM FilesList
Get folders list [ Read more... ]
Gets folders list
SELECT * FROM FoldersList
Select from trash [ Read more... ]
Shows deleted items in Trash
SELECT * FROM Trash
List files from trash for a shared drive [ Read more... ]
Shows deleted items in Trash
SELECT * FROM Trash
WITH(
DriveType='drive'
,DriveId='1j0HFOP4gsoExxxxxx' --get id from select * from SharedDrives
)
Empty trash bin [ Read more... ]
Empties trash bin
DELETE FROM Trash
Empty trash bin for a shared drive [ Read more... ]
Empties trash bin for a specified shared drive
DELETE FROM Trash
WITH(
DriveType='drive'
,DriveId='1j0HFOP4gsoExxxxxx' --get id from select * from SharedDrives
)
Export Google Sheet to Excel (xlsx) or PDF [ Read more... ]
Export a Google files to other format (e.g. Google Sheets to MS Excel / PDF)
SELECT "Status" FROM export_file
WITH(
Id='1j0HFOP4gsoE-Zbf2xN3IsPSj8wgwNtIfyyvM1_BWkW4' --//google sheet id or document ID
--,DriveId='xx your shared drive id' --get id from select * from SharedDrives
--,DriveType='drive'
, ExportAs='application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'
--, ExportAs='application/pdf'
, ResponseDataFile='c:\temp\sheet1.xlsx'
, FileOverwriteMode='AlwaysOverwrite' -- or try 'FailIfExists' or 'SkipIfExists'
))
--You can export files from 'export_file' endpoint