Hey, guys. I'm in the process of creating a custom workflow process / step that will list all assets within a folder and subfolders. I initially used the Query Builder API, but I don't know if this is the best way to go about it. How would you approach something like this? Are there alternatives?
Solved! Go to Solution.
@mrvnaz : Before suggesting alternatives, it would be important to know
Based on the answers of these, we can decide what may be an ideal approach to this. As a general rule, it is not advisable to do lot of queries in AEM as it will overburden your instance etc.
thanks.
Querying is most expexisve feature wothin AEM. In place of that you can overlay workflow process step dialog and add a path browser in place of writing lot of custom baked code. You can read it's metadata at the time of execution.
We can suggest more optimized soluion if you can elaborate your use case.
I am curious to know what the exact use case is, in workflow do you intend to show the items some where? Or do you want to find child items or filter child items of the payload based on some criteria, etc Based on the usecase, it makes sense to decide if u want to use a query or not like the experts suggested before me. Perhaps details of the exact usecase can help u get more directons.
Thanks !
@mrvnaz I am thinking it's just you need the list of assets inside a folder for a reporting purpose. Go through below article which gives you an OOTB feature to list down the assets as json structure. https://experienceleague.adobe.com/docs/experience-manager-64/assets/extending/mac-api-assets.html?l...
Views
Like
Replies