Skip to content

Download from Google Cloud

Description

The Download from Google Cloud activity allows you to retrieve files from a designated directory within a Google Cloud Storage bucket.

This activity supports pattern-based file selection, date filtering (such as today, yesterday, or a custom range), and optional post-download actions like file deletion or moving to another directory.

Use this activity to:

  • Automatically fetch new files from a cloud bucket for processing
  • Filter files by name using regex
  • Retrieve files based on date
  • Manage downloaded files by deleting or moving them after download

Use case:
After exporting reports to a Google Cloud bucket using a scheduled job, this activity can fetch only the latest reports (e.g., from today or yesterday), apply pattern matching (e.g., filenames starting with sales_), and forward them to downstream processing tools such as CSVParser, DataTransformer, or EmailAttachment.

Input

Not applicable

Output

Output TypeFormatDescription
FilesFile downloadDownloaded files from the specified GCS path

Configuration Fields

Field NameDescription
ConnectionSelect a connection to Google Cloud Storage. Required for authentication.
ProjectGoogle Cloud project identifier.
BucketName of the cloud storage bucket to download files from.
Working DirectoryThe directory path inside the bucket where files are located.
RegExA regular expression pattern to match specific file names for download.
Files ForFilter files based on time:
  • All
  • Today
  • Yesterday
  • Today and Yesterday
  • Date Range
Start DateStart date for file filtering (visible only if Date Range is selected under Files For).
End DateEnd date for file filtering (visible only if Date Range is selected under Files For).
Delete After DownloadIf enabled, files will be deleted from the bucket after successful download.
Move After DownloadIf enabled (and Delete After Download is disabled), files will be moved to another directory in the bucket post-download.
Move DirectoryDestination directory for moved files (required only if Move After Download is enabled and Delete After Download is disabled).

Sample Input

Not applicable

Sample Configuration

FieldValue
connection.idgoogle-cloud-storage
projectcloud-data-project
bucketdata-exports-bucket
workingDirectory/daily-reports/
regex^sales_.*\.csv$
filesForToday
deleteAfterDownloadfalse
moveAfterDownloadtrue
moveDirectory/processed/

Sample Output

Remote File NameFile NameSizeDownload
/daily-reports/sales_01.csvsales_01.csv120 KB[Download]
/daily-reports/sales_02.csvsales_02.csv95 KB[Download]