Expand my Community achievements bar.

July 31st AEM Gems Webinar: Elevate your AEM development to master the integration of private GitHub repositories within AEM Cloud Manager.
SOLVED

Query to find page and referenced assets list of given date range

Avatar

Level 1

Hi, I have a requirement to pull out page and its referenced assets on given date range. Please share the query that help us to generate output. I don't want to write code, I am looking to handle this via query itself. 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

hi @ashok-tech 

You can try something like the below sample query which will get all the pages under specified path that are modified in the specific date range using predicate named "daterange".

 

path=/content/my-project/en
type=cq:Page
daterange.property=jcr:content/cq:lastModified
daterange.lowerBound=2022-08-10
daterange.upperBound=2022-08-20
p.limit=-1

 

More options about this predicate can be find here, 

https://experienceleague.adobe.com/docs/experience-manager-65/developing/platform/query-builder/quer...

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

hi @ashok-tech 

You can try something like the below sample query which will get all the pages under specified path that are modified in the specific date range using predicate named "daterange".

 

path=/content/my-project/en
type=cq:Page
daterange.property=jcr:content/cq:lastModified
daterange.lowerBound=2022-08-10
daterange.upperBound=2022-08-20
p.limit=-1

 

More options about this predicate can be find here, 

https://experienceleague.adobe.com/docs/experience-manager-65/developing/platform/query-builder/quer...