Cloud Workflow
Raise an IssueJoin Community
  • Getting Started
    • Introduction
    • Integration Basics
    • Sign Up and Get a License
    • Features and Benefits
  • DBSync Platform
    • Core Components
    • System Requirements
    • AppCenter
      • Company and User Management
    • Development Studio
    • Security Features
  • iPaaS
    • Home
    • Apps
    • Extend
      • Functions
    • Administration
      • User & Role Management
    • Logs
    • Remote Agent
    • Published Templates
  • Create your Workflow
    • Project
    • Task
    • Flow Builder
      • Standard Functions
    • Actions
      • Flow
      • Variable
      • Transform and Write
      • SQL
      • Restructure
      • Query
      • Debug
      • ReST
      • Conditions
        • If (Condition)
        • For (Loop)
      • Storage
        • Dropbox
        • File
        • CSV
        • Google Drive
        • FTP
        • S3
      • Flow Management
        • Flow
        • Logs
        • Notification
        • Schedule
        • API
        • Webhook
        • Forms
    • Configuring DBSync Environment
  • Connectors
    • Amazon S3
    • Authorize.NET
    • ChannelAdvisor
    • Database
    • Dropbox
    • FTP
    • Google Drive
    • Google Sheets
    • HubSpot
    • JIRA Cloud
    • JIRA Service Management
    • Linnworks
      • Creating the DBsync Application on Linnworks Developer Instance
    • Mailchimp
    • Microsoft Dynamics 365 Business Central
    • Microsoft Dynamics 365 Finance and Operations (D365 F&O)
    • Microsoft Dynamics CRM Online
    • Microsoft Dynamics GP
    • Microsoft Dynamics NAV
    • monday.com
    • Narvar
    • NetSuite
      • NetSuite Connector Settings
    • OpenAPI
    • PointClickCare
    • QuickBooks Desktop
    • QuickBooks Online
    • Sage Intacct
    • Salesforce
    • ShipStation
    • Shopify
    • SkuVault
    • WooCommerce
  • Template Library
    • Salesforce to QuickBooks Online Order to Cash
    • Salesforce to QuickBooks Desktop Order to Cash
    • Salesforce to FTP Integration
    • QuickBooks Online to Salesforce Accounts Receivable
    • QuickBooks Desktop to Salesforce Accounts Receivable
    • QuickBooks Online to Business Central Integration
    • QuickBooks Online to ShipStation Orders
    • QuickBooks Desktop to Shipstation Orders
    • QuickBooks Desktop to monday.com Integration
    • QuickBooks Online to monday.com Integration
    • Shopify to QuickBooks Online
    • Shopify to QuickBooks Desktop
    • Linnworks Orders to QuickBooks Online
    • Linnworks Orders to QuickBooks Desktop
    • Linnworks to Salesforce Integration
    • Salesforce Litify and QuickBooks Online
    • Salesforce Litify and QuickBooks Desktop
    • HubSpot to QuickBooks Online Order to Cash
    • HubSpot to QuickBooks Desktop Order to Cash
    • SkuVault Orders to QuickBooks Desktop
    • SkuVault Orders to QuickBooks Online
    • SkuVault and Salesforce
    • ChannelAdvisor Orders and Salesforce
    • ChannelAdvisor and QuickBooks Online
    • ChannelAdvisor and QuickBooks Desktop
    • Shopify Orders to Dynamics365 CRM
    • Shopify Orders to Salesforce
    • ShipStation to Dynamics 365 CRM
    • ShipStation Orders to Salesforce
    • ShipStation to QuickBooks Online Orders
    • ShipStation to QuickBooks Desktop
    • Target Recruit to QuickBooks Online
    • Target Recruit to QuickBooks Desktop
    • QuickBooks Online to Database
    • QuickBooks Desktop to Database
  • Troubleshooting
    • Common Errors & Fixes
    • Adding Trusted IP Address in Salesforce
    • Installing QuickBooks Web Connector
    • QuickBooks to Salesforce Data Migration
    • Setting Password in QuickBooks Web Connector
    • Starting QuickBooks Web Connector
    • Update Salesforce Password & Security Token in DBSync
  • Additional Resources
    • Billing Information - Auto Renewal
  • Tutorials
    • Salesforce and QuickBooks
      • Account Hierarchy in Salesforce and QuickBooks
      • Account Owner Mapping
      • Resolving Email Fields Sync Issues in QuickBooks Online
      • Mulitple Price Levels in Salesforce QuickBooks Integration
      • Multicurrency in QuickBooks to Salesforce Integration
      • Multicurrency in Salesforce - QuickBooks Desktop Integration
      • Multicurrency in Salesforce QuickBooks Online Integration
      • Product Hierarchy in QuickBooks and Salesforce
      • QuickBooks Data Extraction Queries
      • QuickBooks File Backup and Recovery Process
      • QuickBoooks Reports to Salesforce Integration
      • Recurring Transactions to Accounting System
      • Retrieve Value from custom Field of QuickBooks Online
      • Salesforce Opportunity to QuickBooks - Disabling Jobs
      • Salesforce QuickBooks Custom Mappings
        • Use Case
      • Salesforce QuickBooks Integration with Multiple QuickBooks
      • Syncing Standard Group Line Items in QuickBooks Desktop
    • Using Date Function in DBSync Integration
    • Salesforce and Database
      • Database to Salesforce Integration
    • Database to Database
      • Database to Database Integration
Powered by GitBook
On this page
  • Introduction
  • Prerequisites
  • Setting Up the Google Drive Connector(Optional)
  • Basic Operations with the Google Drive Connector
  • Available Operations
  • Download File
  • Properties for Download File Operation
  • Properties for Upload/Write File Operation
  • Advanced Configuration
  • Custom Search Queries
  • Error Handling
  • Security Best Practices
  • Troubleshooting
  • Common Issues
  • Useful Links
  1. Connectors

Google Drive

Learn how to use Google Drive Connector in DBSync Cloud Workflow

Introduction

The Google Drive Connector for DBSync Cloud Workflow enables seamless integration between Google Drive and your business workflows. This guide will help you set up, configure, and effectively use the Google Drive Connector to automate your file management tasks within the DBSync platform.

Prerequisites

  • A valid DBSync Cloud Workflow account.

  • Google Drive account with API access enabled.

  • Permissions to configure connectors in DBSync.

Setting Up the Google Drive Connector(Optional)

Enable the Google Drive API

  1. Go to the Google Cloud Console.

  2. Create a new project or select an existing one.

  3. Navigate to APIs & Services > Library.

  4. Search for Google Drive API and enable it.

  5. Create OAuth 2.0 credentials under APIs & Services > Credentials.

  6. Set up the redirect URI according to DBSync’s integration requirements.

Configure the Google Drive Connector in DBSync

  1. Log in to your DBSync Cloud Workflow dashboard.

  2. Navigate to Apps in the left navigation bar.

  3. From the list of available connectors, select Google Drive or click Add App under the Google Drive icon.

  4. Click Login to Google Drive (OAuth) and enter your Google Drive credentials to complete the authentication.

  5. After completing the authentication process, click Test Connection to validate the integration.

Basic Operations with the Google Drive Connector

Once connected, you can perform various file management tasks, such as uploading, downloading, or syncing files. Below are common use cases and their configuration details.

Use Case 1: Upload a File to Google Drive

  1. Create a new Workflow in DBSync.

  2. Add an Action Step and select Google Drive Connector.

  3. Configure the action as Upload File.

    • File Path: Specify the file path in your source system.

    • Drive Folder ID: Provide the destination folder ID in Google Drive.

  4. Save and test the action.

Use Case 2: Download a File from Google Drive

  1. Add an Action Step with the Google Drive Connector.

  2. Select the action as Download File.

    • File ID: Enter the ID of the file you wish to download.

    • Destination Path: Set the path where the file will be saved.

  3. Save, test, and run the workflow.

Available Operations

Download File

This operation allows users to download files from the connected Google Drive account.

  • Read From (File/Folder Path)

    • Filepath: Enter a fixed file path.

    • Data-stream-variable: Click the Fx icon to choose a dynamic variable that retrieves the file path from previous actions, e.g., a file path returned from a QUERY operation in Salesforce.

    • Regular expression: Input a pattern, such as r'.*\.txt$, to download matching files.

  • File Content: The content of downloaded files is stored in a generated variable, which can be renamed as needed. This variable is automatically added to the data stream for further processing.

Properties for Download File Operation

The properties associated with this operation ensure that downloaded files are stored for further processing within the workflow.

Upload/Write File

This operation enables users to upload or write files to the selected Google Drive connection.

  • Operation: From the dropdown, choose Write.

  • Write To (File/Folder Path)

    • Filepath: Enter a static file path.

    • Data-stream-variable: Use the Fx icon to select a data stream variable for a dynamic file path.

    • Regular expression: Define a pattern, like r'.*\.txt$, for the target file.

  • File Name [Input Text]

    • Input a file name or drag and drop a variable from the data stream.

    • By default, the variable $file-name retains the source filename but can be edited as needed.

  • File Content [Input Text]

    • Choose the file content variable from the Fx dropdown.

Properties for Upload/Write File Operation

  • If File Name Exists [Dropdown]:

    • Skip: Skips the upload if the file name already exists.

    • Override: Replaces the existing file with the new one.

  • Batch-size [Dropdown]: Choose the batch size for the operation.

    • Options: 10, 50, 100, 1000.

Move/Rename File Operation

This operation allows users to move or rename files within the connected Google Drive account.

  • Select App [App Dropdown]: Choose the relevant app.

  • Operation: Select ‘Move/Rename File’.

  • Source File Path [Dropdown with editable input text]: Specify the file path to be moved or renamed.

  • Destination File Path [Dropdown with editable input text]: Enter the target path for the file.

Advanced Configuration

Custom Search Queries

You can use search parameters to filter files and folders in Google Drive. For example:

  • Search for a specific file type: mimeType='application/pdf'

  • Search by file name: name contains 'Report'

Error Handling

Implement error handling using the following steps:

  1. Add a Conditional Step post-action to handle failed uploads or downloads.

  2. Configure custom alerts or retries based on your workflow needs.

Security Best Practices

  • Restrict Access: Limit the scope of the Google Drive API to only the permissions necessary.

  • Monitor OAuth Tokens: Regularly rotate OAuth credentials and monitor for any unusual access.

  • Data Encryption: Use secure methods for data storage and retrieval.

Troubleshooting

Common Issues

  • Authentication Failure: Verify that the Client ID, Client Secret, and redirect URI are correctly configured.

  • File Not Found: Ensure the File ID or path provided is correct.

  • Access Denied: Check that the Google Drive API has the necessary permissions.

Useful Links

PreviousFTPNextGoogle Sheets

Last updated 1 month ago

: Use the Google Drive connector with the action to unleash the full potential.

Google Drive action