How to find and download latest file in Google drive

Need help. Need to download the latest file from google drive which is always changing/updating daily with new folders but the filename always contains ALL STATUS

image

Hi Users,
we can use DOWNLOAD FILE activity from gsuite application package
and file id can be obtained from with FIND FILE AND FOLDERS ACTIVITY in the same gsuite package whose output is a FILE IDfrom property FEELINGLUCKY with a variable of type string

image

image

happy Automation…!!!

When I try to use the find files/folder activity it will not output the file id of the latest version of the file.

Hi @Henson_Ibon

Please find attached solution. Provide GSuite configurations as per your requirement.

GetLastModifiedFile.xaml (12.2 KB)

GSuite version 1.11.0

Hope it will help you.

thanks for this. downloaded the file but there was an error when I tried to debug the code.

here is the error encountered.

Hi @Henson_Ibon

Your datatable is empty.

Check in local panel if your datatable has got any values.

You need to provide folderID in search.

Folder ID is already provided but still encountering error.

Hi @Rahul_S ,

The code work but unfortunately it will only access a particular folder. I want to use the parent folder since the subfolders will update the next day. It will create a new folder daily.

Here there multiple search expression that you could use try if it helps: Search for files and folders  |  Google Drive  |  Google Developers.

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