Send Gmail when a Salesforce contact is created

CRMMarketingRecipe ToolsDeveloper ToolAPI IntegrationDatabaseERP

What it does

When a new contact is created in Salesforce, this automation retrieves the contact details and sends an email via Gmail. Someone is notified of the new record so the team can follow up.

Who it's for

Sales teams who need to notify someone when a new contact enters Salesforce.

How teams use this

Notify the team of new contacts

When a contact is added to Salesforce, send an email to the sales team so they know to follow up. The automation runs every time without manual steps.

Route contacts to different email lists

Change the Gmail recipient based on the contact's region or industry so each team gets only relevant notifications. The flow stays the same and only the email address changes.

Add contact data to the email body

Include the contact's phone number, company, and title in the Gmail message so the recipient has context without opening Salesforce. Set up fields to map from the contact record to the email template.

Log all emails sent for audit

Record each email sent to a log or database so there is a record of when contacts were notified. Add a step to store the email timestamp and recipient.

How it works

  1. New contact created in Salesforce. A new contact record is added to Salesforce, starting this automation.
  2. Retrieve the contact details. Fetch the full contact information from Salesforce by ID so the email has all the details needed.
  3. Get the current time. Capture the current time in the workspace timezone so the email timestamp reflects when the contact was created.
  4. Send email via Rest to Gmail. Send a request via Rest to Gmail with the contact details so someone is notified of the new record in the channel.
  5. Create a follow-up record in Salesforce. Create a related record in Salesforce to track that the email was sent for this contact.