Create a Salesforce case from Gmail, or account first

ProductivityCRMMarketing

What it does

When someone receives a new important email in Gmail, this automation searches Salesforce for an account matching the sender. If the account exists, it creates a case; if not, it creates the account first, then the case.

Who it's for

Customer support teams who need to log incoming emails as cases without leaving Gmail.

How teams use this

Log inbound email as a support case

When an important email arrives, the sender's account is found or created in Salesforce and a case is logged automatically. The team sees all incoming mail as cases without manual entry.

Route cases by account type

Extend this automation to check the account type after it is found or created, then assign the case to different queues based on that type. Only accounts marked as enterprise route to the premium support team.

Notify the account owner

After the case is created, add a Slack notification step that looks up and messages the account owner so they know a new issue has been logged. The support team and account owner stay in sync.

How it works

  1. Receive a new important email. A new email arrives in Gmail and is marked as important, which starts this automation.
  2. Search for the sender's account. Search Salesforce for an account with a name matching the email sender's address so the right record is found.
  3. Create account if none found. If no account exists in Salesforce, create one with the sender's email address as the account name before proceeding.
  4. Create a case for the email. Create a case in Salesforce linked to the account, capturing the email subject and body as the case details for tracking.