Send email alert when Marketo List reaches capacity

Recipe ToolsMarketingDeveloper ToolAPI Integration

What it does

When a scheduled check runs every 5 minutes, this automation retrieves leads from a Marketo List and counts them. If the lead count reaches the specified capacity, it sends an email alert and stops.

Who it's for

Marketing operations teams who need to monitor Marketo List size and get notified when capacity limits are approached.

How teams use this

Monitor list growth and alert team

Track a Marketo List size every 5 minutes and send an email when it hits the capacity limit so the team knows to archive or clean up leads.

Alert different teams on capacity

Send the capacity alert to a different email address or distribution list based on which Marketo List is monitored. The automation logic stays the same, only the recipient changes.

Add Slack notification alongside email

Include a Slack message in addition to the email alert so the team gets notified in their chat channel when capacity is reached. Set up a Slack webhook to post the alert message.

How it works

  1. Check Marketo List every 5 minutes. This automation runs on a schedule every 5 minutes to monitor the lead count in a specified Marketo List.
  2. Retrieve leads from Marketo List. Send a request via Rest to Marketo to fetch leads from the specified List, retrieving up to 300 leads per page and using pagination to get all results.
  3. Count leads across all pages. Track the total lead count as each page is retrieved, updating the count variable with each paginated response from Marketo.
  4. Check if capacity is reached. Compare the total lead count to the specified capacity threshold. If the count meets or exceeds capacity, proceed to send an alert.
  5. Send email alert and stop. Send an email notification that the Marketo List has reached capacity, then stop this automation from running further.