Learning Byte #005 : Copy Drive Folders in Make using Google Apps Script

Copy Drive Folders in Make.com

Have you ever found yourself wrestling with the daunting task of copying Drive folders in Make, desperately wishing for a simpler, more efficient solution? :robot:

If your answer is a resounding “yes,” then you’re in the right place. :exploding_head:

Let’s explore a transformative solution using Google Apps Script that will elevate your Make experience and save you from the struggles of manual folder copying. :partying_face: :100:

This can save your Make operations and valuable time to replicate a structured set of files and subfolders, maintaining organization and hierarchy.

Want to know How??? Go through the short loom explanation :point_down:

watch loom here

If you need help to build your automations, feel free to reach out to us:
MSquare Support
Visit us here
Youtube Channel

2 Likes

this is great, thank you.

I wonder if you have any ideas on a problem I’m getting though. If I just execute the URL in a browser tab the script runs fine (even with other Google users with no added permissons) but if I run from Make HTTP it is not working. The output is just huge HTML file which when I create as an HTML file and look at is the Google logon page

Thanks for any help you can provide, I’m stuck

1 Like

Hi @mdb213

Please share the screenshot of the http module you are getting error and the script also.

If you require additional assistance, please don’t hesitate to reach out to us.
MSquare Support
Visit us here
Youtube Channel

Thanks, here is what I have:

The script isn’t fully complete but works so far just running the URL

@mdb213

Sorry for the confusion. We want to see the error from HTTP module. Also, could you please specify what you are trying to achieve using this script to better assist you?

If you require additional assistance, please don’t hesitate to reach out to us.
MSquare Support
Visit us here
Youtube Channel

Don’t apologise, I really appreciate your help. I want the script to create a whoile folder structure when a new client is created, this is just the start but works as is.

The output, saved to an HTML hust gives me the Google login page:

I have tried the URL on another person with no special permissions set and it worked as expected. Just in Make it fails and I’m not getting anything to tell me why

@mdb213

Did you select doGet() function on top after saving before running in HTTP? If not, then please try selecting doGet and run in Make again. Also, I want to know the HTML message as output from HTTP module after running. It tells the error causing.

If you require additional assistance, please don’t hesitate to reach out to us.
MSquare Support
Visit us here
Youtube Channel

Hi and thank you for perservering!

Yes doGet is selected

Here is the HTML file (I can’t attach here). Like I say just looks like the regaulr Google Login

Hey @mdb213

Its very long ago we were in conversation here. We would like to know if your problem is resolved or not. If not, we will do our best to help you further.

Regards,
Msquare Automation - Gold Partner of Make

Book a Free Consultation | Connect Live
Explore our YouTube Channel for valuable insights and updates!