Export Marketo leads changes to Dropbox

Recipe ToolsDeveloper ToolAPI IntegrationData ParserDocument/File

What it does

When a scheduled interval triggers, this automation queries Marketo for lead changes since the last run. It exports those leads to a CSV file and uploads it to Dropbox, then records the sync time.

Who it's for

Marketing operations teams who need Marketo lead data in Dropbox on a regular schedule.

How teams use this

Sync Marketo leads to a data warehouse

Export lead changes on a daily schedule so a data team can load them into a warehouse or analytics tool. The CSV format works with most data pipelines.

Share lead reports with the sales team

Run this automation every morning so sales operations can download the latest lead changes from Dropbox and share them with account executives.

Filter leads by status before export

Add a condition to the Marketo query so only leads with a specific status are included in the CSV. This keeps the file focused on the records the team needs.

How it works

  1. Run on a specified interval. This automation runs on a schedule you set, such as daily or hourly, to keep lead data current.
  2. Retrieve the last sync time. Search the Last Runtime lookup table to find when the automation last ran, so only new changes are fetched.
  3. Fetch lead changes from Marketo. Call Marketo via HTTP to get an access token, paging token, and all leads that changed since the last run.
  4. Format leads as CSV. Compose the lead data into a CSV file so it can be opened in spreadsheet software.
  5. Upload file and log the sync. Upload the CSV file to Dropbox and update the Last Runtime lookup table with the current time.