How to save a list of file names from Google Drive

If you require to save a list of file names from Google Drive, please follow the below instructions

Illustrated below is an example of a flow that returns a list of files from a Google Drive folder and then saves each file name to a buffer which is being referenced in the Sync Flow step.

image

in this example, the Google Drive List source step is used to return a list of files from a folder on Google Drive.

Recursive checkbox - returns a list of files within sub-directories.
Include folders checkbox - returns a list of the folder names.

The below image shows the returned results from the Google Drive source step which includes the base path, file name, mime type for each file, path and the type.

In the Synchronous Flow, a parameter for the path is referenced as an Input Parameter to return the file and save the file name to a buffer. The Input Parameter is located at the start of the flow as illustrated in the below image.

The parameter is defined in the start of the flow as an Input Parameter as shown in the below image.

In the Google Drive source step, Google Drive connection is selected and the parameter is specified in the File ID field by clicking on the highlighted link icon and selecting the parameter name as shown in the page below.