Google Drive is a great tool for storing shared documents, but setting up folder structures for new clients and projects can be a tedious task.Â
In this tutorial, weâll show you how to automatically create nested folders in Google Drive using Zapier. This means that youâll be able to make a new folder, create additional folders within that first folder, and so on.Â
A nested folder automation is a useful addition to a client onboarding workflow, a project launch workflow, or any situation where you need to frequently make sets of similarly structured folders.Â
Creating folders is a simple automation suitable for any skill level, so you can follow along even if you havenât used Zapier much at all yet.Â
Create a Trigger
As with any Zapier automation, youâll need to have a triggering event before you can add actions like creating folders.Â
Your triggering event can be nearly anything, but itâs best for this tutorial if your trigger includes data you can use to name your new folders.
In our example, weâll use a âNew Recordâ in our Airtable database of clients as a trigger. When we check the âOnboardâ column for a client in this database, that record will appear in the âOnboarded Clientsâ view, and trigger the automation.
Learn more about triggering automations with Airtable views in this post
You can use a similar trigger, or use whichever app youâd like here. Test your trigger to get some data, and continue.
Create a New Folder
Add a step, choose Google Drive as the app, and choose âCreate Folderâ as the Action Event. Sign in to your Google Drive account, and continue.
Select the Drive that youâd like to use, or leave the field blank to default to using âMy Driveâ.Â
Next, youâll need to specify the folder where you want to create your first new folder.Â
The easiest and most reliable way to identify a Google Drive folder in Zapier is to grab it from the URL.
In a separate tab, open up your Google Drive and open up the folder that you want to use. In your address bar, highlight the alphanumeric code after â/folders/â .
This string of characters is your folderâs ID, and it's the best way to designate a folder for use in Zapier.
Otherwise, youâll have to navigate a clumsy UI to dig through all of your folders, and depending on the ownership of each folder, you might not be able to find them at all.Â
So to keep things simple, copy the string of characters after â/folders/â and paste it into the Parent Folder field.Â
Give your new folder a name. We recommend using data from your trigger to make sure that the name will be unique each time the automation runs. Weâll use the Client Name from our Airtable trigger.Â
Test this step, and check Google Drive to make sure the new folder has been created as expected. You can enter âalternateâ in the âSearch folder dataâŠâ field to find the alternate link, which is your folderâs URL.Â
Created a Nested Folder within Your First Folder
To make a folder within the first folder you created, add another Google Drive - New Folder step.Â
This time, set the âParent Folderâ as the folder you created in the previous step. Youâll do this with the folderâs ID again, but this time, you donât have to open up a new tab
Click on the âParent Folderâ field, and click on â2. IDâ. This means that Zapier will use the ID of the folder created in Step 2.Â
Give a name to your new folder. Weâre going to name ours â{Company} Deliverablesâ. Continue and test this step.
Once again, you can use the alternate link to pull up your folder in drive and confirm that it worked properly.Â
If youâd like to add more folders, you can repeat these steps as desired.
Turn on the Zap and give it a live test
Now you can turn your Zap on and give it a complete test all at once. Add a new record to your Airtable view (or do whatever you need to in order to activate your chosen trigger), and wait a few minutes.Â
Once the Zap runs, it will create all of your folders simultaneously.Â
A simple automation to save time and stay organized
Now you know how to make nested Google Drive folders with Zapier. This is a simple but useful technique for setting up new clients, new projects, and more. It will also ensure that every folder is created in a consistent way, so you donât need to waste time looking through disorganized files to find what you need.Â
If youâd like to learn more about building no-code and low-code automations, check out our blog or our YouTube channel. You can also follow XRay on Twitter, Facebook, or LinkedIn.