Objects related to Tasks and Events include the Last Activity and Last Modified fields. This article explains the difference between the two fields in Salesforce, how Last Activity Date is calculated, and what to keep in mind when you log activities.
This article answers what the difference is between Last Activity and Last Modified in Salesforce, and how the Last Activity Date is calculated for an Account.
Last Modified is the date and timestamp for changes made to an individual record, including the User who made the change.
Last Activity is the date when a User last did something related to the record. It represents one of the following:
Example: If a Record has multiple Activities, the "Last Activity" date is the Due Date of the Activity furthest in the future. If the Activity Due Dates are 1/10/2018 and 2/10/2018, the Last Activity is 2/10/2018.
Each Activity record has an "account_id" field that is different from the "what_id" and "who_id" fields. However, the value for the "account_id" field is calculated by inspecting the "who" and the "what" (with the "what" taking precedence).
Salesforce uses not just the Activities which have the Account as the "what" but also Activities that roll up to the Account via the Contract, Custom Object, Opportunity, and Contact.
If the "account_id" cannot be derived from the "what" using the rules above, then Salesforce looks to the "who." If the "who" is a contact with an associated account, then the "account_id" is the account associated with that Contact.
If no account_id is derived from these methods (for example, there is no "what" or "who" on the Task), the account_id field is left blank.
Once the "account_id" value is determined, and if the Activity is not deleted, the Activity becomes a candidate for Last Activity Date calculations for the associated Account.
000385365

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.