Highlighted

How to move bulk Asset in DAM

rajs73651622

15-04-2019

I need to move bulk asset from one location to other in DAM .Manually its not possible to move bcoz i am having more than five thousand asset.

Can some body suggest quickly how to achieve this goal in AEM .

Replies

Highlighted

Hemant_arora

15-04-2019

Use the ACS tools AEM fiddler tool, change the script to servlet from header ,

in your servlet, get all the assets from the folder in dam and use the moveAsset method of AssetManager api to move assets from one location to other.

AssetManager ("The Adobe AEM Quickstart and Web Application.")

Eg:
  // To move Asset from /document/somedocument.pdf to /document/legal with name document.pdf
  AssetManager#move("/document/somedocument.pdf", "/document/legal/document.pdf");

Highlighted

bobbym33667819

15-07-2019

In our case we need to rename thousands of assets. Will the AssetManager API take care of all Collections where these assets have been referenced? If you use the UI manually the collections get updated but if you use the JCR API and session.move() they are not.

Thanks,

Bobby