Sea of Knowledge

Add a Salesforce URL to HubSpot Profile

When integrated with Salesforce, the native form notification emails triggered by HubSpot can be a bit sticky. For example, HubSpot Marketing Hub users that are integrated with Salesforce often want to notify their sales team when new leads are created and assigned. However, the native notification emails only contain a call to action to “View this Contact in HubSpot”. So, what if your sales users are not in HubSpot?

 

If your sales team is not yet using Sales Hub in addition to Salesforce, here’s the best solution for enabling sales to quickly access new lead records.

How to create a Salesforce URL property in HubSpot

  • Create a single-line text field on the contact object in HubSpot to store the Salesforce URL.
    • Settings > Properties > Contact > New Property > Select Group & Name the field “Salesforce URL” > Select “Single Line Text” > Save
  • Create a workflow to populate the field.
    • Create a Contact workflow.
    • Set the enrollment trigger for “Salesforce Lead ID” or “Salesforce Contact ID” is known.
      • This will enroll contacts when they first sync to Salesforce and become a lead and when they are converted to a contact in Salesforce.
  • Enable re-enrollment for both “Salesforce Lead ID” is known and “Salesforce Contact ID” is known.
        • This is crucial in order for the Salesforce URL field to update when the lead is converted to a contact in Salesforce or if the lead is merged with an existing lead or contact.
  • Add an “If/then branch” action and set the first branch to check for “Salesforce Contact ID” is known with the remainder flowing to the second branch.
    • If “Salesforce Contact ID” is known, add a “Set property value” action and select the “Salesforce URL” field.
    • Populate this field following this format: https://[Company’s Specific Domain].lightning.force.com/lightning/r/Contact/[Salesforce Contact ID Contact Property]/view
          • If “Salesforce Lead ID” is known, add a “Set property value” action and select the “Salesforce URL” field.
            • Populate this field following this format: https://[Company’s Specific Domain].lightning.force.com/lightning/r/Lead/[Salesforce Lead ID Contact Property]/view
  • Activate the workflow & enroll all existing contacts who meet the criteria.

Copy Salesforce URL

Trigger a new lead notification email with the Salesforce record link in HubSpot

  • Create all users that should be notified as HubSpot users.
    • Create the users via the Salesforce import option to ensure the user syncs correctly with Salesforce.
    • If you do not want this user to use HubSpot, deselect the ‘Notify new user’ checkbox during creation.
      • This will create the user and enable you to email them without requiring the user to log in to HubSpot or use the platform.
  • Create a workflow with the relevant enrollment criteria. For example, enroll contacts when a certain form is submitted or when a new lead is created that is in a specific country.
  • Add a “Send internal email notification” action to the workflow.
    • Under “Send to users”, select the specific users that should be notified about this new lead.
    • Set the subject for this email. Typically, we recommend “New lead!” or “View new lead in Salesforce.”
    • Set the email body.
      • Typically, we use the following script:

Hi there,

You have a new lead!

View this lead in Salesforce: { {  contact . salesforce _ url  } }

A quick overview:

{ {  contact . first name  } }  { {  contact . last name  } }

{ {  contact . country  } }  { {  contact . industry  } }

{ {  contact . recent _ conversion _ event _ name  } }

  • Activate the workflow.

Set Salesforce URL in HubSpot