How to move assets to specific folder in AEM 6.4 | Community
Skip to main content
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
arunpatidar
arunpatidarAccepted solution
New Participant
Oct 25, 2018 9:57 AM UTC

7 replies

Shrishail_Nimbalkar
New Participant
Jan 23, 2022 7:09 AM UTC

Hi,

If you are trying to move the bulk of assets and references, kindly create script using AssetManager API's and using assetManager.move() method, move the assets from source folder to destination folder. Once assets moved using Query check in how many content nodes the old path is used/authored, by iterating through the nodes read all property values. If any property value matches with source asset path, set the node property with new asset path and activate the node.

Translate
Lokesh_Shivalingaiah
Level 10
Oct 25, 2018 6:46 PM UTC

Hi Pavan,

It should work as expected. If you are still unable to have it successfully, can you post the steps that you are following so that we can try to reproduce the same.

Translate
smacdonald2008
Level 10
Oct 25, 2018 3:55 PM UTC

See this Video where we show that assets in pages (which are moved) are automatically being updated to reflect the new AEM DAM location.

Translate
smacdonald2008
Level 10
Oct 25, 2018 2:59 PM UTC

It works fine on 6.4 - just tested - i will post a video to show this working. I moved from DAM location A to DAM location B.

Translate
arunpatidar
New Participant
Oct 25, 2018 11:13 AM UTC

Hi,

It should be reflecting automatically.

Can you see below screen when you do move, It gives you option to adjust references.

Translate
Arun Patidar
pavanh77
pavanh77Author
Level 2
Oct 25, 2018 10:11 AM UTC

Hi Arun,

after moving images are available in specific folder but reference of that images are  not getting reflected on pages.

Translate
arunpatidar
arunpatidarAccepted solution
New Participant
Oct 25, 2018 9:57 AM UTC