How to get all assets from a folder under /content/dam/folder in aem

1.5k Views Asked by At

I'm working on dam assets - I want to get all assets under/content/dam/folder? please let me know if anyone has idea on this?

Thanks in advance.

2

There are 2 best solutions below

0
raju muddana On

@sam- This is basic query which returns all the assets,

path=/content/dam/<root-folder>
type=dam:Asset
p.limit=-1

please check this out.

0
Sadistic On

use query builder api to build a query that will fetch all the assets.