Expand my Community achievements bar.

SOLVED

Is there a way to auto archive files on AEM to a specific folder?

Avatar

Level 2

We know how to set expiration date and unpublish assets from brand portal by setting up the date and time.

 

First question: Once we set an expiration date on assets and they expire on that date, is there a way to auto archive those expired assets to a specific folder?

 

Second question: When we set a date for an asset to expire or set a date for it to unpublish, is there a way to get an email notification?

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

@Tam123456 :

 

For your second question there is an OOTB solution availble

 

Go to Osgi configuration and search for the config:

Adobe CQ DAM Expiry Notification -> You can check the box to send email -> it wil send email to the user who uploaded it.. As per the config, this periodic job runs every 10 seconds to check the expired assets and notify the users.

 

SivakumarKanoori_1-1691135076449.png

 

Tried this, and it is working fine.

First question: 

There is no such scenario to move to the separate folder , though it wlil mark the current asset as expired.  May be you can write a scheduler to run on daily basis and move to the separate folder. <You can use querybuider to get the expired assets>

Thanks,
Siva

View solution in original post

3 Replies

Avatar

Employee Advisor

@Tam123456 

Based on the information provided over various help docs, the auto-archival feature is unavailable with AEM assets. Still, you can post your query here[0] for an expert advice on this topic.

[0] - https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager-assets/ct-p/experience-man... 

Avatar

Level 3

Hi @Tam123456 ,

Both of your questions are interesting usecases in AEM Sites/Assets. I doubt whether we have OOTB functionality to achieve these.

You can definitely achieve these two requirements using custom solutions such as custom workflows, scheduled jobs or event listeners.  

Thanks,

Avatar

Correct answer by
Community Advisor

@Tam123456 :

 

For your second question there is an OOTB solution availble

 

Go to Osgi configuration and search for the config:

Adobe CQ DAM Expiry Notification -> You can check the box to send email -> it wil send email to the user who uploaded it.. As per the config, this periodic job runs every 10 seconds to check the expired assets and notify the users.

 

SivakumarKanoori_1-1691135076449.png

 

Tried this, and it is working fine.

First question: 

There is no such scenario to move to the separate folder , though it wlil mark the current asset as expired.  May be you can write a scheduler to run on daily basis and move to the separate folder. <You can use querybuider to get the expired assets>

Thanks,
Siva