Send payslip emails to Google Drive

ProductivitySales EnablementRecipe ToolsDocument/File

What it does

When a new email arrives in Gmail, this automation downloads the payslip attachment and uploads it to Google Drive in an organized folder structure. Someone receives a notification once the file is stored.

Who it's for

Finance teams who need payslips automatically organized in Google Drive without manual downloads.

How teams use this

Organize payslips by employee

Payslips arrive in a shared inbox and are automatically sorted into Google Drive folders by employee name or ID. The team finds documents faster without manual filing.

Route payslips to HR records

Redirect the automation to upload payslips to an HR-managed Google Drive folder instead of Finance. The same workflow runs but stores files where HR needs them.

Filter payslips by department

Add a condition to check the email sender or subject line and only process payslips for specific departments. This keeps the upload folder focused on relevant records.

How it works

  1. Detect a new email. A new email arrives in Gmail with a payslip attachment ready to be processed and stored.
  2. Check or create folder structure. Call the utility to verify the Financial Folders and Payslips folder exist in Google Drive, creating them if needed.
  3. Download the attachment. Extract the payslip file from the Gmail email so it can be moved to Google Drive.
  4. Upload to Google Drive. Store the payslip file in the organized Google Drive folder structure so it is accessible to the team.
  5. Send a confirmation. Reply or notify someone that the payslip has been uploaded to Google Drive and is ready to access.