Sync new Salesforce leads to a known campaign

CRMMarketingSales

What it does

When a lead is created in Salesforce, this automation searches for an existing campaign by name. If found, the lead is added as a campaign member; if not, the job stops and logs an error.

Who it's for

Sales operations teams who want new leads automatically added to a specific Salesforce campaign.

Apps used

How teams use this

Automatically enroll leads in a nurture campaign

New leads created in Salesforce are instantly added to a known nurture campaign without manual work. The team sees all leads in one place and can track engagement from day one.

Route leads to different campaigns by source

Extend this automation to check the lead source and add each lead to a different campaign based on where it came from. Only leads from a specific source join the target campaign.

Sync leads to a regional campaign

Use this automation in a different Salesforce org or for a regional campaign instead of the original one. The steps stay the same and only the campaign name changes.

How it works

  1. Monitor for new leads in Salesforce. When a lead is created in Salesforce, the automation starts. You can set how far back in time to look for new leads using the Since parameter.
  2. Search for the campaign by name. Search Salesforce for an existing campaign using the campaign name you provide. The search returns the campaign ID if it exists.
  3. Check if campaign exists. If the campaign ID is present from the search, proceed to add the lead. If the campaign is not found, stop the job and log an error in Salesforce.
  4. Add lead to campaign. Create a campaign member record in Salesforce to add the new lead to the campaign that was found in the previous step.