Skip to content

Salesforce Integration Guide

SmartAsset OAT works directly with Salesforce to add new leads automatically. Follow the instructions below to connect Salesforce.

  • Have your Salesforce credentials ready.
  • If you don’t see CRM under Settings > Company, CRM isn’t turned on for your company. Email amphelp@smartasset.com for help.
  1. To open this page, go to Settings > CRM.

  2. Click Connect to CRM. The CRM Configuration window opens.

  3. Click the Salesforce tab.

  4. Click Connect to Salesforce. Salesforce asks you to sign in.

    CRM page and CRM Configuration window with the CRM menu item, Connect to CRM, the Salesforce tab, and Connect to Salesforce highlighted

  5. Sign in with your Salesforce credentials.

  6. Click Allow to give OAT permission to connect.

Once the connection succeeds:

  • OAT returns you to the CRM page and shows “Successfully authorized into Salesforce CRM.”
  • The CRM switch turns on, so new leads go to Salesforce automatically.
  • A Configure Salesforce button appears next to Connect to CRM.

Step 2: Configure Your Salesforce Settings

Section titled “Step 2: Configure Your Salesforce Settings”
  1. On the CRM page, click Configure Salesforce. The Company Salesforce Configuration page opens.

  2. In Configuration Name, enter a name you’ll recognize on the Lead Sources page.

  3. Under Insert As, select Lead, Account, Clients & Business, or Contact.

    Insert As dropdown listing Lead, Account, Clients & Business, and Contact

  4. Under Save Notes as, select Notes and Attachments (Salesforce’s classic notes) or Notes (Lightning notes). Survey answers are saved either way.

    Save Notes as dropdown set to Notes and Attachments

  5. If you see Company, enter what Salesforce should store in that required field. It’s set to “Individual” until you change it.

  6. If you chose Account and want the lead’s email saved, set Insert lead email into to Website.

  7. Optional: to map survey answers to your own Salesforce fields, see Map survey answers to custom fields.

  8. Click Save.

    Salesforce configuration page with the configuration name, Insert As, owner, company, and custom fields

New leads are created in Salesforce with their name, email, and phone, using these settings.

Step 3: Assign Your Salesforce Configuration to a Lead Source

Section titled “Step 3: Assign Your Salesforce Configuration to a Lead Source”
  1. In the side nav, click Lead Sources.

  2. In the CRM Configuration column, select your Salesforce configuration for the Default row. To use a different one for a lead type, select it in that lead type’s row.

  3. Click Save and the source name, for example Save SmartAsset Settings.

    Lead Sources page with a Salesforce configuration selected in the CRM Configuration column and the Save SmartAsset Settings button

New leads from that source now use your Salesforce configuration.

Mapping is optional. You can fill your own Salesforce custom fields with lead details and survey answers.

  1. On the Company Salesforce Configuration page, under Custom Fields, click Auto-detect. Your Salesforce custom fields appear.
  2. In each field you want filled, enter one or more tags from the table below.
  3. Click Save.

Tags fill text, long text area, email, and phone fields. A survey tag must match the question exactly, including capitalization. If a lead didn’t answer that question, the field is left blank.

To capture every answer in one field, create a Text Area (Long) field in Salesforce and map it to {{all-questions-and-answers}}. Each answer appears on its own line as “Question: Answer”.

SmartAsset leads also have these tags:

  • [sa match id]: the SmartAsset match ID for the lead.
  • [sa contact method]: how the lead was delivered: Standard, Live Connected, or Scheduled Meeting.
  • [sa product type]: the SmartAsset product the lead came from, for example CPL, CPM, or AMP.

These fields are left blank for leads from other sources.

Field NameField NameField Name
{{all-questions-and-answers}}
[lead first name][lead last name][lead email]
[lead phone][lead city][lead state]
[lead zip]{{Life stages}}{{Time to improve}}
[sa match id][sa contact method][sa product type]
{{When would you like to retire?}}{{Have a 401(k)?}}{{Current savings}}
{{How confident are you in your long-term financial plan?}}{{Is retired}}{{Household income}}
{{Savings per month}}{{Investment comfort level}}{{Care about socially responsible investing?}}
{{Health}}{{Married?}}{{Separate or joint}}
{{Any children under 18?}}{{Are you a Homeowner?}}{{Business owner?}}
{{Do you have an advisor?}}{{Advisor need to be in driving distance?}}{{Desired expertise}}
{{Investable Assets}}{{Matching Advisor}}{{Matching Zip}}
{{Retirement activity}}{{Retirement vision}}{{Retirement relocation}}
{{Income expectation}}{{Emergency fund?}}{{Have an IRA?}}
{{Recent refinance}}{{How did you hear about SmartAsset?}}{{Financial difficulty or stress caused by health?}}
{{Why new advisor}}{{Additional information}}

OAT connects to Salesforce through a Connected App using the OAuth 2.0 flow, as described in the Salesforce Developer Guide’s Authorization Through Connected Apps and OAuth 2.0. OAT’s access matches the role of the user who signs in to Salesforce to connect.

  • The connection is one-way: OAT only pushes data into your Salesforce instance. It doesn’t pull Lead, Contact, Account, or Household data back.
  • The one exception is metadata. OAT reads the names and IDs of custom fields on the object you use for prospects (Leads, Contacts, or Accounts and Contacts), so it can fill those fields for new leads.
EndpointPurpose
/services/oauth2/tokenGet or refresh an access token
/services/oauth2/introspectCheck the access token and when it expires
/services/data/v51.0/sobjects/Lead/Create Lead records
/services/data/v51.0/sobjects/Contact/Create Contact records
/services/data/v51.0/sobjects/Account/Create Account records
/services/data/v53.0/sobjects/task/describe/Get metadata for the Task object
/services/data/v56.0/sobjects/ContentNote/Create rich-text notes
/services/data/v56.0/sobjects/ContentDocumentLink/Link notes to other records
/services/data/v51.0/sobjects/Note/Create standard Note records
/services/data/v51.0/sobjects/Task/Create Task records
/services/data/v53.0/sobjects/{objectName}/describe/Get metadata for a specific object
/services/data/v53.0/sobjects/{referenceName}Get information about a specific object
/services/data/v53.0/chatter/{referencePluralName}Get Chatter feed items or related references
/services/data/v57.0/queryList active Salesforce users, so you can choose a record owner
/services/data/v66.0/queryList active lead assignment rules

OAT doesn’t read or retrieve lead data after it’s pushed to Salesforce. It does read some metadata during setup. For example, if you use a Lead Record Type such as “B2C,” OAT reads that record type’s ID so it can create the Lead correctly.