내 커뮤니티 업적 표시줄을 확대합니다.

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

활동이 없어 이 대화는 잠겼습니다. 새 게시물을 작성해 주세요.

해결됨

AEMaaCS - Asset/Metadata list

Avatar

Level 4
Level 4

Hi, 

Our requirement is to get the list of all the available assets and metadata from /content/dam/wknddemo path. 

Currently, I use the below[1] query to get the list, but we are migrating to AEMaaCS, so I would like to know what are the options available to achieve the given requirement. 
 
 
Thanks

 

1 채택된 해결책 개

Avatar

정확한 답변 작성자:
Community Advisor

Hi,

 

Please use below query in Query Debugger to fetch all the Assets :

 

path=/content/dam
type=dam:Asset
p.limit=-1

 

Query debugger Path : /libs/cq/search/content/querydebug.html

원본 게시물의 솔루션 보기

3 답변 개

Avatar

정확한 답변 작성자:
Community Advisor

Hi,

 

Please use below query in Query Debugger to fetch all the Assets :

 

path=/content/dam
type=dam:Asset
p.limit=-1

 

Query debugger Path : /libs/cq/search/content/querydebug.html

Avatar

Community Advisor and Adobe Champion

Use below query to get all assets and metadata from dam path. 

 

type=dam:Asset
path=/content/dam/<project>
p.hits=selective
p.properties=jcr:content/metadata/dc:format  jcr:content/metadata/dam:size

In above query i am fetching format and size. Click on JSON QueryBuilder Link to view metadata json

 

HeenaMadan_1-1663856807178.png

Json Response like this:

{"jcr:content":{"metadata":{"dam:size":649544,"dc:format":"image/jpeg"}}}

 

Avatar

Level 4
Level 4

@ksh_ingole7  @HeenaMadan thank you for your time and reply. 

 

I am running the query(given in the original post) successfully in AEM(On-prem) environment without any issues.  However, I wanted to make sure it was the right way to get an asset list from AEMaaCS or need to go with AssetHTTP API. 

 

@kautuk_sahni    Thank you in advance for any suggestions you may have.