---
schema_version: "1"
id: 9e14a362cb828387570949215fb73d65679a0c5ed81dc7c1e2af23ef9078c2d3
title: Guidelines for Tracking Activities
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/sales/264-0-0/activities_view.md
canonical_url: https://help.salesforce.com/s/articleView?id=sales.activities_view.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 4809249c3e5f618c7320241489524789dbf2626337ce939316e4909a02ec4100
description: Review guidelines for tracking tasks and events, including how activity access is determined, how record-activity relationships work, and how the last activity date on a record is determined.
products:
  - Sales Cloud
  - Cross Cloud
  - Service Cloud Voice
release: "264"
---
# Guidelines for Tracking Activities

Review guidelines for tracking tasks and events, including how activity access is determined, how record-activity relationships work, and how the last activity date on a record is determined.

### Required Editions

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

Important Where possible, we changed noninclusive terms to align with our company value of Equality. We maintained certain terms to avoid any effect on customer implementations.

<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: Salesforce Classic, Lightning Experience, and all versions of the Salesforce app</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: <strong>All</strong> editions</td></tr></tbody></table>

## Record and Activity Relationships

An activity’s Related To field helps determine an activity’s relationship to an account.

 
| Content of the Related To Field | Record That the Activity Rolls Up To |
| --- | --- |
| An account | That account |
| An opportunity | The account on that opportunity |
| A contract | The account on that contract |
| A custom object with master-detail relationship with the account object | The account on that custom object record |
| Something other than what’s listed in this table, including empty | The contact’s primary account |

If Shared Activities _is_ enabled, then an activity is also related to each contact’s primary account.

## Last Activity Date

- The last activity date for a record is
    - The due date of the most recently logged event against the record
        
        OR
    - The most recently closed task associated with the record
- The last activity date for an account record is based on all the activities that roll up to the account via the Related To field. For an account, the last activity date can represent an activity that’s related to an opportunity. The last activity date for a contact or lead is based on all the activities that are related to that contact or lead via the Name field.
- If Shared Activities is enabled, an account’s last activity date is still based on the activities that roll up to the account via the Related To field. But if the Related To field is blank, the activities are based on the primary contact’s account. The last activity date for contacts and leads is based on only the activities where the contact or lead is the primary contact on the activity.

## Activity Access

Your access to other people’s events and tasks is based on your:

- Role—You have access to view and edit your own activities plus activities assigned to people below you in the role hierarchy.
- Sharing Model—You have access to an activity based on your access to the Name (Who) record AND the Related To (What) record.

You can view an activity if:

- You’re assigned to the activity, as Owner
    
    OR
- You’re above the user assigned to the activity in the role hierarchy
    
    OR
- You have at least read access to the Name (Who) record and Related To (What) record to which the activity is related.
    
    If Shared Activities is enabled, you need at least read access to any one of the Name (Who) records.
    
    OR
- You have the “View All Records” object-level permission for the Name (Who) record and the Related To (What) record.
    
    OR
- You have the “View All Data” user permission

You can edit or delete an activity if:

- You have the “Edit Tasks” and “Edit Events” permissions:
    
    AND
    
    - You’re assigned to the activity (your personal sharing setting doesn’t apply)
        
        OR
    - You’re above the user assigned to the activity in the role hierarchy (your personal sharing setting doesn’t apply)
        
        OR
    - Activity Organization-Wide Default (OWD) is set to Controlled By Parent
        
        AND
        
        - You have edit or delete access to Name (Who) record (any 1 Contact if Shared Activities is enabled) AND the Related To (What) record.
            
            OR
        - The Name (Who) record is a private contact.
        
        OR
    - You have the “Modify All Data” user permission (your personal sharing setting doesn’t apply)

Editing tasks in this case also includes changing the task assignment. See [Start Using Tasks for information](https://help.salesforce.com/s/articleView?id=sales.creating_tasks.htm&release=264.0.0&type=5 "Review some guidelines for using tasks, including helpful things to know, where to track tasks, and how task assignment works.") about task assignment.