Launches List | Community
Skip to main content
New Participant
July 31, 2023
Solved

Launches List

  • July 31, 2023
  • 2 replies
  • 954 views

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!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Saravanan_Dharmaraj

@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

2 replies

Saravanan_Dharmaraj
Saravanan_DharmarajAccepted solution
New Participant
August 1, 2023

@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

Shashi_Mulugu
New Participant
July 31, 2023

@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...

Trea1Author
New Participant
July 31, 2023

@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).