Hi,
Our requirement is to get the list of all the available assets and metadata from /content/dam/wknddemo path.
Solved! Go to Solution.
Views
Replies
Total Likes
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
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
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
Json Response like this:
{"jcr:content":{"metadata":{"dam:size":649544,"dc:format":"image/jpeg"}}}
@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.
Views
Likes
Replies
Views
Likes
Replies