Sync IBS flags and remove processed leads from Marketo

MarketingRecipe ToolsDeveloper ToolAPI Integration

What it does

When a new lead is added to a list in Marketo, this automation updates the lead's relationship flag in another instance. If the update succeeds, the lead is removed from the Marketo list.

Who it's for

Marketing operations teams who need to sync lead flags across systems and keep Marketo lists clean.

How teams use this

Sync lead flags across Marketo instances

When a lead enters a monitored list, update its relationship flag in a second Marketo instance without manual work. The flag stays in sync across both systems automatically.

Keep lists clean after flag updates

After the relationship flag is updated, remove the lead from the source list so it does not get processed twice. The list stays current and the automation runs only on new entries.

Alert teams when sync fails

If the email or customer record ID is missing in the second instance, stop the job and log an error so the team knows which leads could not be synced. Add a Slack notification to alert someone when this happens.

Audit flag changes in a report

Track every lead that was synced and removed by storing the job report in a shared location. Include the lead ID, timestamp, and removal status so the team can audit the process.

How it works

  1. Detect new lead in list. A new lead is added to a monitored list in Marketo, starting this automation to process that lead's relationship flag.
  2. Update lead relationship flag. Call the Update job to sync the lead's relationship flag to another instance. If the email or customer record ID is not found, the job stops with an error.
  3. Look up the list ID. Search the Contact Policy List IDs lookup table to find the Marketo list ID needed for the removal request.
  4. Remove lead from list. Send a removal request via Marketo's custom HTTP connection to delete the processed lead from the list. Verify the response confirms the lead was removed.
  5. Log the result. Record the outcome to the job report so someone can track which leads were processed and removed from the list.