Button to Google Search Contact

Prompt

Create a button that will perform a Google Search for the Name of a Contact. Place this button on the record page for the Contact.

Solution

Salesforce Classic Record Page

  1. Object Manager > Contact > “Buttons, Links, and Actions”
  2. “New Button or Link”
  • Label: Google Search
  • Name: Google_Search
  • Display Type: Detail Page Button
  • Behavior: Display in existing window without sidebar or header
  • Formula: https://www.google.com/search?q={!Contact.Name}
  1. Add “Google Search” button to the Custom Buttons section of the Contact page layout
  • Note that this only makes the button appear in Salesforce Classic

Lightning Experience Record Page

  1. Click the link to override the predefined actions in the “Salesforce Mobile and Lightning Experience Actions” section of the Page Layout.
  2. Ensure that the “Google Search” button is included in the the “Salesforce Mobile and Lightning Experience Actions” section.