Which is the best approach of finding assets references in bulk on AEM Assets? | Community
Skip to main content
Vishal_Anand
Level 4
June 20, 2025
Solved

Which is the best approach of finding assets references in bulk on AEM Assets?

  • June 20, 2025
  • 2 replies
  • 721 views

I have an use case of finding references of assets (images, pdfs, videos) in bulk across site. Each folder contains 2500+ assets.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Vishal_Anand

Found the best approach of using AEM ACS commons report. 

Link: /apps/acs-commons/content/reports.html

2 replies

Community Advisor
June 21, 2025

You might want to explore this - AssetReferenceSearch

public AssetReferenceSearch(Node node,
                            java.lang.String searchPath,
                            ResourceResolver resolver)
The constructor.
Parameters:
node - node to start search for references
searchPath - search for assets starting with searchPath
resolver - resource resolver

public java.util.Map<java.lang.String,Asset> search()
Search all asset references
Returns:
map containing all asset refs
Vishal_Anand
Vishal_AnandAuthorAccepted solution
Level 4
June 21, 2025

Found the best approach of using AEM ACS commons report. 

Link: /apps/acs-commons/content/reports.html