Create Partner Lead in Salesforce from Gmail
Recipe ToolsCRMMarketing
What it does
When a new email arrives in Gmail, this automation searches Salesforce for matching accounts and leads. It creates a feed item or updates the lead based on what it finds.
Who it's for
Sales teams who need partner referrals from Gmail to sync into Salesforce automatically.
How teams use this
Route partner emails to Salesforce leads
Incoming partner referral emails trigger a search for matching leads in Salesforce. If found, a feed item is added to keep the account updated. The team sees all referrals in one place.
Sync referrals to a partner campaign
Extend this automation to check for and create campaign member records so partner referrals are tracked against a specific campaign. Add a campaign ID filter to route emails based on sender or content.
Enrich leads with referral details
When a lead is found, update it with referral information from the email such as deal size or industry. Set custom fields on the lead record to keep data current without manual entry.
How it works
- Detect a new email. A new email arrives in Gmail and this automation starts in real time to process the partner referral.
- Search for matching accounts. Search Salesforce accounts using a SOQL query WHERE clause to find records that match the email sender or referral content details.
- Search for matching leads. Search Salesforce leads using a SOQL query WHERE clause to check if a lead already exists for this partner referral.
- Create or update the lead record. If a lead exists, create a feed item on the account. If not, update the lead with referral details or link to a campaign member.
- Link to campaign if needed. Check for an existing campaign member record in Salesforce and create one if it does not exist to track the partner source.