Skip to main content
Aug 22, 2022 5:16 PM UTC
Solved

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

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. 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
GanthiRa1Accepted solution
Community Advisor
Aug 22, 2022 11:07 PM UTC

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/querybuilder-predicate-reference.html?lang=en#daterange

2 replies

Jagadeesh_Prakash
Community Advisor
Community Advisor
Aug 22, 2022 5:25 PM UTC
GanthiRa1Community AdvisorAccepted solution
Community Advisor
Aug 22, 2022 11:07 PM UTC

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/querybuilder-predicate-reference.html?lang=en#daterange

Translate