Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Maintain versions on asset copy

Ashwin_Raju
Level 3
Level 3

Hi,

Came across an use case where we need to copy an asset from one location to another which should also hold all the versioning information from the source. Please let me know if any OOTB Api will work here or any other related pointers.

 

Regards,

Ashwin Raju

2 Replies
Jörg_Hoh
Employee
Employee

Do you want to copy the asset within AEM? And is it really a copy or rather a move? Because creating a copy of an asset within the same AEM intance is something you normally wouldn't do, because there is not benefit from it.

Jörg

(And yes: creating a deep copy will preserve the links to the version history, so it shouldn't be a problem.)

Ashwin_Raju
Level 3
Level 3

Hi Jörg,

The use case is to copy few of the assets to a new location which were to be reused for some other user groups who does not have access to the source folders. Also can you please let me know the API documentation link for deep copy which will preserve the version links.

Marking as open since need more information.

Regards,

Ashwin Raju