Loading
Salesforce Help 사이트 “Help Agent powered by Fin” 도입 안내더 많이 읽기
Tableau 고객 대상: Tableau를 이용하는 고객이 Help 사이트에서 사례(케이스)를 등록할 수 없는 경우의 대체 수단더 많이 읽기
Slack 관련 문의처가 Salesforce Help로 통합 및 변경됩니다.더 많이 읽기

Report on how many times a piece of content has been downloaded

게시 일자: Jun 23, 2026
상세 설명

When you click on a content element in Salesforce, the Downloads tab shows who downloaded the content. Standard Salesforce reports do not provide this download history. To report on download activity, use the Salesforce API to query the ContentVersionHistory object.

솔루션

Querying Download History Using ContentVersionHistory

Download history is stored in the ContentVersionHistory table. To retrieve download records, query this table using a filter on the field column equal to contentVersionDownloaded. The ContentVersionHistory.CreatedById field identifies who downloaded the file, and ContentVersionHistory.CreatedDate records when the download occurred.


To get the count of downloads per user for today, query ContentVersionHistory filtering by Field = 'contentVersionDownloaded' and CreatedDate = TODAY, grouping results by CreatedById. This returns one row per user with a count of their downloads.

SELECT
    count(id) DownloadCountByUser,
    CreatedById
FROM
    ContentVersionHistory
WHERE
    CreatedDate = TODAY
AND
    Field = 'contentVersionDownloaded'
GROUP BY
    createdbyid

 

Querying Content Delivery Downloads

For content delivery download tracking (external sharing), query the ContentDistributionView object. Filter by today's date to retrieve content delivery events. This table includes the distribution ID, the creation date, whether the event was a download, whether it was an internal access, and a parent view ID.

Select DistributionId, CreatedDate, IsDownload, IsInternal, ParentviewID From ContentDistributionView where CreatedDate is Today

 

Performance Considerations

The ContentVersionHistory table can grow very large in active orgs, and unoptimized queries may be slow. To improve performance, always include a restrictive WHERE clause. The most effective approach is to filter by CreatedDate using an indexed date field, such as CreatedDate = TODAY or a specific date range. Avoid broad queries without date filters on this table.

Knowledge 기사 번호

000385125

 
로드 중
Salesforce Help | Article