---
schema_version: "1"
id: ad9862400ec80f2c64e202c1caa0d960a18b6252038a4ebe050ae0d251f00b49
title: How Events Are Automatically Related to Contacts or Leads
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/sales/264-0-0/aac_event_sync_auto_relate.md
canonical_url: https://help.salesforce.com/s/articleView?id=sales.aac_event_sync_auto_relate.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 9e881c6f2e2bd7bafe7bb7321f89379e26191dc8898b00e6444eca8ea6510167
description: Einstein Activity Capture can automatically relate synced Microsoft or Google events to relevant contacts or leads in Salesforce. Learn how that feature works, and how it interacts with other Salesforce options.
products:
  - Sales Cloud
  - Cross Cloud
  - Service Cloud Voice
release: "264"
---
# How Events Are Automatically Related to Contacts or Leads

Einstein Activity Capture can automatically relate synced Microsoft or Google events to relevant contacts or leads in Salesforce. Learn how that feature works, and how it interacts with other Salesforce options.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: Lightning Experience</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available with Einstein Activity Capture Standard in Sales in <strong>Starter</strong>, <strong>Pro Suite</strong>, <strong>Professional</strong>, and <strong>Enterprise</strong> Editions</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available with <strong>Unlimited </strong>Edition, <strong>Einstein 1 Sales Edition</strong>, and <strong>Agentforce 1 Edition</strong></td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available with Einstein for Sales, which is included in <strong>Einstein 1 Sales Edition</strong> and available for an extra cost in <strong>Enterprise</strong> and <strong>Unlimited</strong> Editions</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available with Sales Engagement, which is included with Sales in <strong>Performance</strong> and <strong>Unlimited</strong> Editions, and available for an extra cost in <strong>Professional</strong> and <strong>Enterprise</strong> Editions</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available with Revenue Intelligence, which is available for an extra cost in <strong>Enterprise</strong> and <strong>Unlimited</strong> Editions</td></tr></tbody></table>

![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-sales-sales_productivity-264-0-0-production-enus/b2f6c36a-fa61-4a3c-9752-032ce1818a69/images/icon_note.png)

Note We’re reorganizing the Einstein Activity Capture documentation. We’re moving some information around, but we aren’t deleting anything.

If your admin selects the **Relate synced events to Salesforce records** option from a configuration’s advanced sync settings, then, when events sync to Salesforce, they’re related to Salesforce records. Events are automatically related only under these conditions.

- Sales reps create their events by using Microsoft or Google calendars.
- The attendee’s email address matches an email address found on a contact or lead in Salesforce.
- The first time the event syncs from your Microsoft or Google calendars to Salesforce. After the first time the event syncs to Salesforce, subsequent matching contacts or leads invited to the event aren’t automatically related. Likewise, when a user removes an attendee from an event, the attendee’s name is removed from the Attendees field, but the matching related records aren’t automatically removed from the event. But you can remove or replace the related record manually.
- If Salesforce [sharing rules](https://help.salesforce.com/articleView?id=platform.security_about_sharing_rules.htm&type=5&language=en_US) permit the event organizer to see the matching contacts or leads in Salesforce. (Or in record-level access terms, only View access to the matching records is needed.)

For events with an organizer and multiple attendees, you can’t always predict which specific attendee or attendees “wins” as the related record or records. Which records are related depend on these two factors.

- Whether your admin has turned on [shared activities](https://help.salesforce.com/articleView?id=activities_enable_shared_activities.htm&language=en_US) (the Allow Users to Relate Multiple Contacts to Tasks and Events option on the Activity Settings page in Setup)
- The kinds of records (users, contacts, or leads) you have in Salesforce that include email addresses that match the attendees’ email addresses.

## Matching Attendees with Records when Shared Activities Is Off

When shared activities is off, Einstein Activity Capture can relate only one Salesforce contact or lead to your event.

- For events with an organizer and only one attendee, Einstein Activity Capture searches for a contact or lead that matches that single attendee and relates it to the event.
- For events with more attendees, Einstein Activity Capture evaluates attendees for matches in a random order. Because only one related record is supported, the record that “wins” depends on the random order attendees are evaluated and the matching contact or lead you have in Salesforce.

Sometimes Einstein Activity Capture finds multiple Salesforce records that match a single attendee’s email address. In that case, here’s how records are related when shared activities is off.

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
        <colgroup>
          <col style="width:33.33333333333333%">
          <col style="width:33.33333333333333%">
          <col style="width:33.33333333333333%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d120956e193">If the attendee’s email address matches these Salesforce records</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d120956e196">...Salesforce adds this record to the Attendee field</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d120956e199">… and Einstein Activity Capture automatically relates this record to the
              event.</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="If the attendee’s email address matches these Salesforce records" class="slds-cell-wrap" style="vertical-align:top;" headers="d120956e193 ">A contact and a lead</td>

            <td data-label="...Salesforce adds this record to the Attendee field" class="slds-cell-wrap" style="vertical-align:top;" headers="d120956e196 ">The contact</td>

            <td data-label="… and Einstein Activity Capture automatically relates this record to the event." class="slds-cell-wrap" style="vertical-align:top;" headers="d120956e199 ">The contact</td>

          </tr>
          <tr class="">
            <td data-label="If the attendee’s email address matches these Salesforce records" class="slds-cell-wrap" style="vertical-align:top;" headers="d120956e193 ">
              <p>A Salesforce user and either or both: </p>
              <ul>
                <li>A contact</li>
                <li>A lead</li>
              </ul>
            </td>

            <td data-label="...Salesforce adds this record to the Attendee field" class="slds-cell-wrap" style="vertical-align:top;" headers="d120956e196 ">The Salesforce user</td>

            <td data-label="… and Einstein Activity Capture automatically relates this record to the event." class="slds-cell-wrap" style="vertical-align:top;" headers="d120956e199 ">The contact. If no matching contact is found, the lead.</td>

          </tr>
        </tbody>
      </table>

## Matching Attendees with Records when Shared Activities Is On

When shared activities is on, Einstein Activity Capture can relate up to 50 matching contacts or one matching lead to your event.

- For events with an organizer and only one attendee, Einstein Activity Capture searches for a contact or lead that matches that single attendee and relates it to the event.
- For events with more attendees, Einstein Activity Capture first searches all attendees for matching Salesforce contacts and relates the first 50 that are located. If no matching contacts are found, Einstein Activity Capture searches all attendees for a matching Salesforce lead and relates the first one that’s located.

Sometimes Einstein Activity Capture finds multiple Salesforce records that match a single attendee’s email address. In that case, here’s how records are related when shared activities is on.

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
        <colgroup>
          <col style="width:33.33333333333333%">
          <col style="width:33.33333333333333%">
          <col style="width:33.33333333333333%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d120956e273"> If the attendee’s email address matches these Salesforce records</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d120956e276">...Salesforce adds this record to the Attendee field</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d120956e279">… and Einstein Activity Capture automatically relates this record to the
              event.</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="If the attendee’s email address matches these Salesforce records" class="slds-cell-wrap" style="vertical-align:top;" headers="d120956e273 ">A contact and a lead</td>

            <td data-label="...Salesforce adds this record to the Attendee field" class="slds-cell-wrap" style="vertical-align:top;" headers="d120956e276 ">The contact</td>

            <td data-label="… and Einstein Activity Capture automatically relates this record to the event." class="slds-cell-wrap" style="vertical-align:top;" headers="d120956e279 ">The contact</td>

          </tr>
          <tr class="">
            <td data-label="If the attendee’s email address matches these Salesforce records" class="slds-cell-wrap" style="vertical-align:top;" headers="d120956e273 ">
              <p>A Salesforce user and either or both: </p>
              <ul>
                <li>A contact</li>
                <li>A lead</li>
              </ul>
            </td>

            <td data-label="...Salesforce adds this record to the Attendee field" class="slds-cell-wrap" style="vertical-align:top;" headers="d120956e276 ">The Salesforce user</td>

            <td data-label="… and Einstein Activity Capture automatically relates this record to the event." class="slds-cell-wrap" style="vertical-align:top;" headers="d120956e279 ">If a contact or lead has the same email address as a Salesforce user, and that
              user has already been added to the Attendees field, Einstein Activity Capture
              doesn’t relate the matching contact or lead to the event. Instead, Einstein Activity
              Capture evaluates the rest of the event attendees, looking for up to 50 matching
              contacts, and relate them. If no contacts are found, Einstein Activity Capture
              evaluates the rest of the event attendees, looking for one matching lead, and
              relates it.</td>

          </tr>
        </tbody>
      </table>

## What to Expect When No Matching Contact or Lead Is Found

If no contacts or leads match your event attendee’s email address, synced events are added to the Unresolved Items list in your Personal Settings in Salesforce. From there, you can choose which Salesforce contacts or leads to relate. Or you can remove the event from the list and opt not to relate a record. If no matching contact or lead is found, the invitee’s email address is saved in Salesforce. It appears in the event record details, and can only be removed if a user removes the email address directly from the event in the connected calendar.

#### See Also

- [Events and Einstein Activity Capture](https://help.salesforce.com/s/articleView?id=sales.aac_guidelines_sync.htm&release=264.0.0&type=5 "Discover how Einstein Activity Capture handles your event data after it’s captured.")