Expand my Community achievements bar.

SOLVED

Launches List

Avatar

Level 1

Greetings,

Is there any way to obtain a list (JSON) of all launch pages in AEM? I've tried using querybuilder to filter along the path of /content/launches and filter by type=cq:Page, but that yields many duplicate pages that don't actually exist. I'm wondering if AEM has a built-in tool that automatically does this (as http://localhost:4502/libs/launches/content/launches.html provides an accurate list of all launches, but does not have a JSON I can parse). 

 

Any help would be appreciated, thanks!

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

@Trea1 You can filter by like below and process the query results and print it in json. But the tricky part is the path you need to pass the path for every day since the folder created based on year/month/day.

 

property=sling:resourceType

property.value=wcm/launches/components/launch

path=/content/launches

View solution in original post

3 Replies

Avatar

Community Advisor

@Trea1 why do you want is as json? What are you trying to build? So that we can see if we can do some alternative...

Avatar

Level 1

@Shashi_Mulugu I'm trying to create a python script that compares launches between two given points in time. Each day, the goal is to download a JSON to store in an offline database. We want to be able to go that database, pick two JSON files for any random day, then loads that data into the script so it can compare them (points out any new ones created between those two days and provides the URL to them, along with pointing out if the last modified date on any of our launches was updated).

Avatar

Correct answer by
Community Advisor

@Trea1 You can filter by like below and process the query results and print it in json. But the tricky part is the path you need to pass the path for every day since the folder created based on year/month/day.

 

property=sling:resourceType

property.value=wcm/launches/components/launch

path=/content/launches