Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

How to build a package with last modified content

Avatar

Level 2

Hello everyone is there a way how I can build package only with files and folders which were "last modified"? is it possible to use regular expression?

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

Well, technically you can build the content package definition just using the HTTP interface of AEM. But that comes with a  lot of overhead and probably isn't very nice to build. I would recommend the logic into a bundle (probably using Java) and  then running everything from inside AEM.

Jörg

View solution in original post

6 Replies

Avatar

Employee Advisor

There is no standard function or API available for this specific usecase, you have to implement it yourself; Arun already provided a link which gives some hints how the standard APIs can be used (not exactly covering your usecase, but you use it to understand the API).

Jörg

Avatar

Level 2

I use Python for this task however I know that AEM doesn't support python

Avatar

Correct answer by
Employee Advisor

Well, technically you can build the content package definition just using the HTTP interface of AEM. But that comes with a  lot of overhead and probably isn't very nice to build. I would recommend the logic into a bundle (probably using Java) and  then running everything from inside AEM.

Jörg

Avatar

Level 2

Well, the problem that I don't know Java and I am not familiar with AEM. My question is if I can find modified content cuz I don't see that AEM marks it somehow , I observe jcr:created but I don't see  modified

Avatar

Employee Advisor

there should be a "jcr:lastModified" property available, which is also exposed with the default JSON rendition (if not overlayed).