Some users see Activity History showing 0 or 1 records on Account record pages in Lightning Experience even though activities exist.
Activity History related list shows "0" or incorrect count on record pages in Lightning Experience due to a Restriction Rule on the Task object filtering out automatically archived activities (IsArchived = true). Clicking "View All" displays activities correctly. Resolution involves updating the Restriction Rule criteria on the Task object. Additionally, this restriction also affects email message visibility, as the rule impacts companion tasks created as part of email message records.
This article answers why the Activity History related list shows 0 or an incorrect count in Lightning Experience when a Restriction Rule is active on the Task object, and how to confirm the cause.
Verify whether Restriction Rules are enabled on the Task object or related Activity objects. This condition is the likely cause of the mismatch between the Activity History related list count and the View All results.
The inline Activity History related list counter filters archived activities, and activities owned by other users, under the Task Restriction Rule. The View All page uses a different query path, so it can still display those activities. Explain this behavior to stakeholders.
005460243

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.