How to get google folder id from google drive link

Hi

I am trying to move files from one google drive to another using automation between Make and Clickup.

In clickup I have records that have assigned google drive links where all files related to a client is save. Now using Make I am moving this files from one google drive link to another.

My question is how do I use google drive link to get the folder ID so that I can copy over the files.
Also how can i copy multiple files from a folder at once ?

Grateful if someone could assist me on this.

Thanks
Artika

Welcome to the Make community!

A.

Assuming your links are similar to this:

https://drive.google.com/file/d/1cq_DLarU2e6CKYwmL0eM2eN18c7bTquG/view
https://drive.google.com/file/d/1cq_DLarU2e6CKYwmL0eM2eN18c7bTquG/edit

You can directly download the file this way:

B.

Otherwise you can do this just to get the Folder ID

Screenshot_2024-01-23_120149 (2)

This gets the full path of the file, including file name, using the ID of the file found in the URL e.g.: 1cq_DLarU2e6CKYwmL0eM2eN18c7bTquG

You get /path/to/folder/filename.pdf

This removes the file name from the full path, so you can get the Folder Path: /path/to/folder, and the module gets the Folder ID:

3 Likes