Introduction
Need to transfer collaborative data from Google Drive into MongoDB for analysis, backups, or integration with your systems? With SSIS and the ZappySys SSIS PowerPack, this is easier than ever. In this tutorial, you’ll learn how to extract data from Google Drive using the API Source with Google Drive Connector and load it directly into MongoDB, without writing a single line of code.
Prerequisites
Before getting started:
- Download and install ZappySys SSIS PowerPack
- MongoDB database (local or cloud-based)
- A valid Google Account
Steps
Step 1: Create or select a Google API project
- Go to the Google API Console.
- Click the project dropdown at the top and either select an existing project or click Create Project.
- Once your project is created, click ENABLE APIS AND SERVICES.
- Search for and enable the following APIs: Google Drive API and Google Sheets API.
- Navigate to the OAuth Consent Screen tab. Please fill out the required fields and click ‘Save’.
- Go to the Credentials tab.
- Click Create Credentials then OAuth Client ID. Choose Desktop App as the application type.
- After creation, you’ll receive a Client ID and Client Secret—you’ll need these for SSIS.
Step 2: Configure the source component in SSIS
- Open your SSIS package and drag a Data Flow Task onto the Control Flow canvas.
- Inside the Data Flow, drag the ZappySys API Source component.
- Double-click it, click New Connection, and choose Google Drive Connector.
- Authenticate via OAuth 2.0, then enter your Client ID and Client Secret and select the required scopes.
- Generate and save the access token. Click Preview to verify data access.
- Click OK to save the connection.
- Select the desired table or endpoint in the API Source.
- Add any required parameters for filtering.
- Click Preview to view the dataset, then press OK to save your configuration.
Step 3: Configure the MongoDB Destination
-
In the Connection Manager, right-click and choose New Connection, then select ZS-MONGODB.
-
Configure the connection: Enter the host, username, password, and database.
-
Optionally configure SSL or replica set settings in the Advanced tab.
-
Test the connection to confirm it’s working.
-
Drag a MongoDB Destination component and connect it to the API Source.
-
Configure the destination: In the Connection Manager tab, select your MongoDB connection.
-
Under Component Properties, set the Action to Insert and define the collection name.
-
In Column Mappings, ensure your columns are mapped (auto-mapping will work if names match).
-
Execute the package and verify data insertion in MongoDB using a tool like MongoDB Compass.
Step 4: Updating MongoDB records
- Add a JSON Generator Transform between the API Source and MongoDB Destination.
- Configure the desired JSON structure. For guidance, refer to the ZappySys JSON Generator documentation.
- Right-click the ID (or key) column, select Edit, and check Include Column in the Downstream to pass it separately.
- In the MongoDB Destination, set action to Update or UpdateOrInsert under Component Properties.
- In Column Mappings, map the generated JSON in the document column and the key field (e.g., ID) to the filter column
- Run the package. Existing records will be updated based on the key match.
Conclusion
Exporting data from Google Drive to MongoDB doesn’t require scripting or complex integration pipelines. With ZappySys API Source and MongoDB Destination, you can build a robust, low-code ETL process entirely within SSIS.
Ready to get started? Download the ZappySys SSIS PowerPack and begin building robust data pipelines today.
References
- ZappySys Google Drive Connector
- ZappySys Google Drive Connector documentation
- MongoDB Destination
- MongoDB Destination documentation
- Blog articles
- SSIS PowerPack
Contact us
If you encounter any challenges or have specific use cases, please contact our support team via chat or ticket.