Google Drive Connector with Knack Flows
Knack’s native integration with Google Drive allows you to automate document and file management directly from your Knack app.
- Upload files to Google Drive when a record is created
- Create folders automatically for new projects
- Move, copy, or comment on Drive files
- Automate permissions and sharing
This integration is ideal for teams managing contracts, HR records, reports, student submissions, or any data-driven document flow.
🔔 GOOGLE DRIVE TRIGGERS
These triggers start a Flow based on new files in Google Drive:
Trigger | Description |
File Created | Triggers when any new file is created in your Google Drive. |
File Created in a Folder | Triggers when a file is created inside a specific folder. |
⚙️ GOOGLE DRIVE ACTIONS
These actions let you manipulate files and folders in Google Drive from a Knack Flow:
Action | Description |
Add File | Upload a file from Knack to a Google Drive folder. |
Move a File | Move a file from one folder to another. |
Create a Copy of a File | Duplicate a file and apply changes with patch semantics. |
Change File Metadata by ID | Rename a file or update its metadata (title, description, etc.). |
Create Folder | Create a new folder in a specific location in Google Drive. |
Creates a Permission for a File | Share a file or folder with specific users or groups. |
Create a New Comment on a File | Add a comment to a document or file by ID. |
Update a Comment | Modify an existing comment on a Google Drive file. |
Knack Flows Tutorial: Upload Files from Knack to Google Drive Automatically
In this tutorial, you’ll learn how to use Knack Flows to automatically send uploaded files from a Knack app to Google Drive. This is a common use case for teams who want to centralize documents, store attachments in Drive folders, or share uploaded files more easily.
We’ll walk through setting up a simple automation:
- When a new record is created in Knack (with a file field),
- Extract the file URL,
- Upload the file to Google Drive using a pre-connected integration in Flows.
- How to trigger Flows on new record creation
- How to access the uploaded file's URL
- How to upload that file to Google Drive
- How to test the Flow
Step-by-Step Instructions
Automation Overview
Here’s an example using a Knack table called Client Contracts, which includes two fields:
- Client Name (Short Text)
- Client Contract (File)
When a new Client Contract record is created, we’ll attach a file to the Client Contract field. This file will then be automatically uploaded to Google Drive through a Knack Flow.
Let’s start by creating a new Flow from scratch:
STEP 1: TRIGGER – NEW RECORD IN KNACK
Select Knack as the app and choose Record Created as the event.
In this example, we’re using the Client Contracts table so the flow triggers whenever a new record with a file is added.
Click Continue to save.
STEP 2: ACTION – GET FILE BY URL
Select HTTP Request / Outgoing Webhook as the app. For the action, choose Get File by URL.
Click Continue. On the next page, you’ll see a URL field. For this field, add the Filename – URL value for your file.
In this example, the field is called Client Contract – URL.
Click Continue to save this step.
STEP 3: ACTION – ADD FILE TO GOOGLE DRIVE
Next, add another action step to your Flow for Google Drive.
For the app, choose Google Drive. For the action, select Add File. Then connect (or select) your Google Drive account.
Click Continue.
For the File field, map the output from Step 2 (HTTP Request / Outgoing Webhook), selecting the File value as shown below:
Finally, you can also add the Client Contract – Filename from Step 1 (Create Record in Knack).
Click Continue to save the Flow.
TESTING THE FLOW
Start the Flow and run a quick test.
Here, we’ve created a new record in the Client Contracts table and uploaded a file called clientcontract1.docx.
As you can see, this Client Contract file was automatically moved to Google Drive via the Flow.
🎥 Video Tutorial
https://www.youtube.com/watch?v=nYHaJiZh1cM