---
title: "Drive Changed"
description: "Run when Google Drive files change for a connected account or folder."
canonical_url: "https://docs.vettero.com/build/event-handlers/drive-changed"
---
# Drive Changed

> Run when Google Drive files change for a connected account or folder.

<trigger-meta capability="Google Drive" group="Files" icon="i-lucide-hard-drive" service="Google" serviceTo="/integrations/third-party-services/google" type="google.drive.on-change">



</trigger-meta>

**Drive Changed** runs when Drive push notifications arrive. Empty folder watches My Drive. A folder watches that folder. Google does not send cell-level diffs — follow with [Get File](https://docs.vettero.com/build/workflows/blocks/drive/get-file) or [List Files](https://docs.vettero.com/build/workflows/blocks/drive/list-files) if you need a fresh read.

Watches expire about daily. Vettero renews them on a schedule.

## Payload

<table>
<thead>
  <tr>
    <th>
      Field
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        serviceId
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      Connected Google service with Drive enabled
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        folderId
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      Optional folder to watch. Empty is all My Drive
    </td>
  </tr>
</tbody>
</table>

## Trigger data

Available as `args.*`.

<table>
<thead>
  <tr>
    <th>
      Field
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        fileId
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      Drive file id
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        removed
      </code>
    </td>
    
    <td>
      boolean
    </td>
    
    <td>
      File was removed or trashed
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        file
      </code>
    </td>
    
    <td>
      object
    </td>
    
    <td>
      Metadata when the file is still present
    </td>
  </tr>
</tbody>
</table>

## Use case

- When a file lands in an intake folder, create a [table](https://docs.vettero.com/data/tables) row and store the id on a [Drive File](https://docs.vettero.com/data/tables/drive-file) column.
- Download with [Download File](https://docs.vettero.com/build/workflows/blocks/drive/download-file) and [persist](https://docs.vettero.com/build/workflows/blocks/file/persist) if Vettero should keep a copy.

<trigger-page-nav>



</trigger-page-nav>


## Sitemap

See the full [sitemap](https://docs.vettero.com/sitemap.md) for all pages.
