Sync cleaned phone numbers to Marketo

Recipe ToolsMarketingWorkatoDeveloper Tool

What it does

When a scheduled trigger runs every 7 days in Clock, this automation exports leads from Marketo and transforms phone numbers. It updates those leads back in Marketo so the phone field is consistent across the database.

Who it's for

Marketing operations teams who need standardized phone numbers in Marketo for accurate outreach and reporting.

How teams use this

Standardize phone numbers for campaigns

Leads with inconsistent phone formats are cleaned automatically every week so marketing campaigns reach the right people. The team does not have to manually fix phone data before sending messages.

Improve data quality for sales handoff

Sales teams receive leads from Marketo with clean, standardized phone numbers so they can dial and text without reformatting. This reduces friction when leads move from marketing to sales.

Add formatting for international numbers

Extend the Ruby code to detect and format phone numbers from multiple countries, not just those starting with 1. Only leads with a country field set will be reformatted by the new logic.

How it works

  1. Run every 7 days. This automation starts every 7 days at 3 AM so phone number cleaning happens on a regular schedule without manual work.
  2. Export leads in bulk. Marketo exports all leads as a file so the phone numbers can be processed and standardized in the next step.
  3. Transform phone numbers with code. Ruby code runs to find phone numbers that start with 1 and reformats them into a consistent standard so the data is clean.
  4. Update leads in Marketo. The cleaned phone numbers are sent back to Marketo in a batch so all leads now have standardized phone fields.