Need help with Gsuite

There’s a folder in google drive. I want to keep checking for any new files uploaded in that folder. If any new file has been uploaded bot should download that in the machine on which it is running. Files can be added at any time. The bot needs to run 24/7. Please help with the logic and conditions. It would be really helpful and appreciated. Thankyou

1 Like

Hey @Aditya_Kumar3

  1. Use a while loop or retry scope inside which you will try to get the file using below activity

https://docs.uipath.com/activities/docs/gsuite-find-files

  1. Once you get the result as file present, you can then use below activity to download

https://docs.uipath.com/activities/docs/gsuite-download-file

Hope this helps

Thanks
#nK

1 Like

Hi
Thanks it helps and i have managed to download the files using the this activity. What condition should i put in the while loop so that the program is running infinitely and the second a new file is uploaded in that drive, it downloads it. A bit confused over here

1 Like

Hey @Aditya_Kumar3

Just hardcode it as true to repeat forever :sweat_smile:

But are you sure you are going to run it as infinite loop ?

Thanks
#nK

1 Like

Yes that’s the only way i guess
Thanks a lot

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.