How-to — task-oriented recipe.
Overview
- Create custom fields in your Salesforce instance
- Part 1 - Creating custom fields for Account objects
- Part 2 - Creating custom fields for Contact objects
- Disable the “Send through External Email Services” feature
- Set up Affinity for Salesforce in Affinity
- Set up page layouts in your Salesforce instance
- Part 1 - Setting up page layouts for Account objects
- Part 2 - Setting up page layouts for Contact objects
Create custom fields in your Salesforce instance
You have the ability to enrich account and contact records in your Salesforce instance with dozens of Affinity Data fields, which contain important information about companies and individuals. To enable this, you’ll need to create custom fields in Salesforce for each Affinity field that you’ll want to sync.Part 1 - Creating custom fields for Account objects
- First, review the list of Affinity Data fields and how you can create their equivalents in Salesforce: Creating custom Salesforce fields based on Affinity Data fields
- When you’re ready to start creating these custom fields, go to Salesforce Setup. Then, click on the Object Manager tab and click the Account object.

- Now, click on the Fields and Relationships tab, then click New to create a custom field.

- Choose the Data Type that is most relevant based on the Affinity Data field you are choosing, then click Next.

- Now, click the checkbox next to Visible to make sure all available profiles have access to this field. You can also click the checkbox next to Read-Only if you’d like to prevent users from making edits to this field. Then, click Next.

- Repeat as necessary for each field that you want to sync.
Part 2 - Creating custom fields for Contact objects
Repeat steps 1-6 above, but for Contacts this time.Disable the “Send through External Email Services” feature
If your organization sends emails through the Salesforce email composer, then your Salesforce admin may have enabled the Send through External Email Services feature. This needs to be disabled moving forward, given that it would create duplicate activities alongside enrichment by Affinity for Salesforce.- Type “email” in the search bar and click the Send through External Email Services tab on the left-side navigation.

- Verify that the settings for Gmail and/or Office 365 are turned off.

Set up Affinity for Salesforce in Affinity
- Sign into your Affinity instance, then click on Settings in the top-right corner.

- From there, click on the Users tab on the left to invite users and set up their Activity Sync Rules.
- You can also click on the Blocked Emails tab and add contacts here whose interactions you would like to prevent from syncing to Salesforce moving forward.

- Once you’ve added all the emails you’d like to hide communications for, click on the Integrations tab on the left, then click on Salesforce.

- Click on Affinity for Salesforce to get started with the set up process.

- You’ll see that you can connect Affinity to both Production and Sandbox versions of your Salesforce instances.

- You will see a webpage titled Allow Access?, where you can click Allow to continue.

- Once you’ve connected your Salesforce instance, go to the section titled Select Account and Contact List Views and select the account list view and contact list view you’d like to enrich with Affinity Data, then click Save.

- Set up Enrichment Types 1.

- You can choose to either enrich the most recently created opportunity or the last modified opportunity. Finally, click Save and you’re all set.

Set up page layouts in your Salesforce instance
Part 1 - Setting up page layouts for Account objects
- Go to Setup, then click Object Manager, then click Account.
- In the Account object, click the Page Layouts tab on the left sidebar, then click Account Layout.

- Create a new section within the Account Layout so that you can place the custom Salesforce fields you previously created into this new section.
- Within the Fields tab, you’ll see the custom Salesforce fields you recently created. Drag-and-drop these fields onto this new section.

- You’ll also notice the Highest Relationship Score provided by Affinity. Drag and drop the Highest Relationship Score field into the desired section.

- Scroll down to the Related Lists tab, where you’ll find the custom object Affinity Connections that you can drag-and-drop under Related Lists.

- Click the Edit icon next to Affinity Connections, which will allow you to select which Affinity fields to show and which field to sort by.

Part 2 - Setting up page layouts for Contact objects
Repeat steps 1-7 above, but for Contacts this time. Now that you’re done setting up your Salesforce and Affinity instances, let’s see how you and your team members can put Affinity for Salesforce into practice (see How to use Affinity for Salesforce).Screenshots




